Hello,
i added a record in master grid,
Q1:may i set the focus on lastest added record?
Q2:the detail grid will be reflash automatically?
Rgds,
#1, Focus on latest record is not supported now. You can try searching on google, for "jqgrid focus latest record". I can incorporate if it is supported by core lib.
#2, You can try setting
$opt["add_options"]["afterSubmit"] = "function(response) { if(response.status == 200) $("#list2").trigger("reloadGrid", [{current:true}]); }";
where list2 is detail grid id.
Hi,
thank you for your help!
in add dialog , i can set the button event as
$opt["add_options"]["afterSubmit"]
in edit dialog , i can set the button event as
$opt["edit_options"]["afterSubmit"]
can you tell me how to set the delete dialog after submit?
is $opt["delete_options"]["afterSubmit"] ?
(but delete dialog has "delete button" not "submit button" )
rgds,
–continue—
if i set
$opt["delete_options"]["afterSubmit"] = "function() { $('#list2').trigger('reloadGrid', [{current:true}]);}";
when i click the "delete" button in delete dialog ,
the list2 grid will be reload.
but delete dialog can not be close automatically.
how to close delete dialog automatically ?
Rgds,
Add return true line at end.
return [true,""];
like …
$opt["delete_options"]["afterSubmit"] = "function() { $('#list2').trigger('reloadGrid', [{current:true}]); return [true,""]; }";
Hi to all ,
this code :
$opt["delete_options"]["afterSubmit"] = "function() { alert('ciao'); return [true,'']; }";
not work with inline delete in the column Action , thanks in advance