Hi,
Do not forget – FF3 is in beta. I can not provide a support for FF3 until final.
There is a problem in FF3 with check boxes and other thinks.
By example in FF3 you can not change the width and height of the check boxes.
Regards
Tony
You can use the following trick.
Initially set the data type to : clientSide – i.e. – datatype: clientSide – the grid is loaded and nothing more, since the grid expect local data.
If some conditions are changed you can do:
….
jQuery(“#mygrid”).setDataType(“xml”); // or json
jQuery(“#mygrid”).setUrl(url);
…
jQuery(“#mygrid”).trigger(“reloadGrid”);
…
Regards
Tony
Hi,
Thank you very much for this addition. As I tell you before I will include additional module with user contributed methods and this will be added too. 🙂
Thank you again
Regards
Tony
It is really difficult to me to understand what you try to do.
What is happen when you make this call?
Is the data loaded?
Maybe you should set a page too – something like
…
jQuery(“#griddata”).setPage(1l);
…
Please explain what is happen?
If you use FF you can look what is the returned data from server
Regards
Tony
I think that this is good idea, but will be done in the next release.
Regards
Tony
Hi Andre,
At the moment this is not possible, but I hope that at the near future this can be achieved. It will be difficult to realize this since the data in grid is represented via table.
Regards
Tony
One possible solution is to pass the request in loadComplete as parameter (should be changed into the code) . This way you can use what you want. But be a carefull – after this you shoult terminate the request manually – i.e.
loadComplete : function(therequest) {
// do what you want
therequest = null;
}
Regards
Tony
Hi,
You can look here
http://trirand.com/jqgrid/docs/
Section Data Types
Sorry there are errors that should be corrected
jqGrid saves only the entry row and not a particular cell on change.
Here is my technique to do that:
…
onSelectRow: function(id) {
if(id && id != lastsel){
jQuery(’#list1′).restoreRow(lastsel);
jQuery(’#list1′).editRow(id,true,myfunc);
jastsel=id;
}
myfunc function(id)
{
jQuery(â€#â€+id+â€_thecellnameâ€).change( function() {
$.ajax(..) // here is the code to save the cell
…
// if you have other cells you can chain them in jQuery
}
}
Currently dynamically change of the model is not supported.
One possible solution is to hide and show columns by condition, but not to change the model
Regards
Tony
Hi Ricka123,
I can not read the code. If you want to share you solution please write your code between code tag
Thanks
Regards
Tony
Not sure but I notice that you call checksave twice one for save and second when edit. The error come from on edit and not on save. To work this i think one possible solution is:
onSelectRow: function(id){
if(id && id!==lastsel){
jQuery('#rowpain').saveRow(lastsel,checksave);
jQuery('#rowpain').editRow(id,true);
lastsel=id;
}
}
I.e call it only once when you save the row
As for the validation plugin I think this can not be used.
Validation plugin as I known works on forms. When edit here we do not have a form. But this make me think that there is no problem to include a form element here.
Regards
Tony
Hi,
I do not think so. The new grid have modular structure. I mean we have a basic grid and I have moduled the subgrid, inline editing and the new form editing. So I plan to add a new module – user contributed addons. Be sure Your will be the first.
Thanks
Tony
I think that the good way is to do that at server side – i.e. to add content like links, buttons and etc. at server side and attach them a click events
Regards
Tony
Hi,
You are right. I will think about this
Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top