Ok, so I RTFM and searched SO and google, and I can't seem to figure out how to add hooks so that I can add a 'loading' icon when a user hits submit when 开发者_StackOverflow中文版adding/editing a new row from the dialog box in grid. All I need to do is know when the user clicked the submit button. Any ideas?
onclickSubmit seems to be what you need.
Figured it out:
the form events are attached to the navGrid, not the grid itself:
$("#myGrid").navGrid("#commodGrid-pager", {add:false, view:false, del:false,edit:true}
,{"onclickSubmit": function(){alert("ouch!");}}, /*edit options*/
,{} /*add options*/
,{} /*delete options*/
,{multipleSearch:false}
,{closeOnEscape:true}
);
精彩评论