Reg,
IMHO you do not need any plugin. You can use some already build in
jqGrid functions with a little code. So look in grid.formedit.js.
There are two usefull functions (that can be used anywhere) –
createModal and viewModal. Look into the parameters and
you will have idea how they can be used. Now the little piece of code.
Let suppose that your form has id myform – then
var fields = $(“#myform”).serializeArray();
var griddata = {};
jQuery.each(fields, function(i, field){
Currently you can do this changing the code.
I will review this and will see if this can be updated in the upcomming
bug fix release.
Regards
Tony
Thank you. Will be fixed.
Tony
Maybe in the next major release 
Have attention of two things:
1. do not forget to set “mygrid” – this is true since if you have
multiple grids with same id you will have trouble
$(“#”+rowid,”#mygrid“).css(…)
2. Be a sure that you have uniquie id's in the table
Regards
Thank you
Tony
Yes,
There is such way.
afterInsertRow : function(rowid, rdata){
if(condition here) {
Just to a sure that this is the problem, could you please test with
datatype: 'clientSide'
Thank you
Regards
Tony
Is this on FireFox or IE?
But I 'm not sure if after this you will have the expected behavior.
This is expected behavior and not a bug. Let me try to explain:
The reason when you call this way
setRowData(rowid,{”id”:”newid”,“Name”:”NewName”)}
and all is ok is that these fields are not editable. As of the names of the
methods they operate per row and not per cell.
To work this you should set the row to be not editable after
setRowData something like
$(“#rowid”,”#mygrid”).attr(“editable”,”0″);
Sorry maybe I do not understand.
So:
1. you call editRow;
(some fields are not editable and only Kind is editable)
2. you call setRowData(rowid,{”id”:”newid”,“Name”:”NewName”,
“Kind”:”0″}) right?
In this case the editable column Kind is overwritten with the value and it
is no more editable – right?
Do not see setRow instead. (Mybe you call it in EditPerson() function)
What I try to explain is:
If you call editRow on grid and after editRow you call setRow on same grid your data is overwritten by setRow the field has a flag editable,but with data that is overwritten – so you can anymore do edit an this until you not call
restoreRow.
Regards
Tony
Could you please publish the full code in ondblClickRow event?
When you call setRow – before or after editRow?
Could you please post your code here or send me to: tony at trirand.com?
Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top