Hello,
Use the beforeSubmit submit event to set other values
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#delgridrow
Best Regards
Tony
Hello,
Which version of jqGrid do you use? And what you mean can not be resized?
Also for me in 3.5 all works ok.
Regards
Tony
Hello,
This is because we use setCell to store the value and if it is empty we do not set the new value.
Now maybe you should use beforeSaveCell to do this – something like
beforeSaveCell : function (rowid,colName, value, iRow,iCol) {
if (value == “” ) return ” “;
else return value;
}
Also some other note – if you save the value to the server check if you handle empty values.
Best Regards
Tony
Hello Reg,
Thanks, but I must say – I must thank you for all your job of jqGrid documentation.
Please let me known if the solution from vinodh works for you.
Thank you vinodh.
Best Regards
Tony
Hello,
Use formatCell event and not beforeEditCell –
the beforeEditCell is called after we create the element (i.e we use the colmodel), but formatCell will do the job, since it is called before creation of the element.
Regards
Tony.
Hello,
Yes you can control the z index do this:
$(“#mygrid”).setColumns({… zIndex:2000..})
or what you value want. (not sure if this will resolve the issue if you do not use jqModal)
Best Regrds.
Tony
Hello,
I just posted the update to the GitHub – could you please check it and let me known what is. Also I have added unformat select which should do the job.
Regards
Tony
Hello,
setRowData saves the data to the grid and not to the server. In order to use this you should use your own ajax call to seve this to the server.
Regards
Tony
Hello,
Could you please check in FireBug what you get from dataUrl response – i.e. what is the status of the request with this url selectlist.cfm
after you open the form or edit the row or cell.
Regards
Tony
Hello,
How do you delete this? Do you use delGridRow? If this is the case – yes this is expected behavior.
Also you should check if the next row is a subgrid. Below is the code (not tested) which can do this
before deleting row with id=rowid with delGridRow do
var delrow = $(“#mygrid”).getInd(rowid); // get the index of the row
if(delrow) {
// check to see if the next row has class ui-subgrid
var rtodelete = $(“#mygrid”)[0].rows[delrow+1];
if( rtodelete.className == “ui-subgrid” )
$(rtodelete).remove()
}
and the delete the parent.
Little complicated, but will do the job
Regards
Tony
Hello,
In editing modules this is done automatically. In which case and how do you try to do this?
Best Regards
Tony
Hello Nathan,
Thanks for this fix. I update my post so that other can set it correct.
Best Regards
Tony
Hello,
Yes this is true. Currently the pager can only be at botom. There is a planed feature (method) where you can put the pager where you want.
Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top