Forum
15:51
I have these edit options in my navGrid:
{height:610,reloadAfterSubmit:true, closeAfterEdit:true,closeOnEscape:true, jqModal:true,
beforeShowForm : function (formid) {
var mytitle = $('#inputManager').val();
$(”.ui-jqdialog-title”,”#edithd”+”event”).html(”Event Manager: “+mytitle);
return [true,"",""];
},
beforeSubmit: function setID () {
var mN = $('#managerID').val();
var gN = $('#groupID').val();
var vN = $('#venueID').val();
var pN = $('#parentID').val();
jQuery(”#event”).editGridRow(”new”,{editData:{managerID:mN, groupID:gN, venueID:vN, parentID:pN}});
return [true,"",""];
},
bottominfo:”Fields marked with (*) are required”}, // edit options
but the code check in grid.formedit.js (line 805) fails to see the option as true, so the Editgrid won't close.
I see the same issue with addGrid too. If I set these option directly true (line 192 and 190) it works fine.
I'm using GitHub from 9/2/09
Martin
03:12
Moderators
30/10/2007
Hello Martin,
What you mean with: " If I set these option directly true"?
Did you mean that if you have
var editopt = {....} // the options that you listed
and then
...navGrid(...., editopt...), - does not work
but when you
.. navGrid(....,{here edit options}...) - this work
Is this the case?
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
06:40
Hi Tony, Sorry I wasn't clear.
When I edit the grid.formedit.js source file and change the default closeAfterEdit from false to true on line 192 the EditGrid does close.
It seems that the editoptions are not being passed or saved. Perhaps the EditGridRow I'm calling is breaking something?
Thanks
Martin
07:16
Moderators
30/10/2007
Hello,
Just tested your example on demo page. All work fine. Also the only that I do not test is beforeSubmit event.
Just for test disable this event and try. I think that the error occur in this code.
Should I think that you try to edit the row on the same grid again - with the last line on this event?
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
76 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66