jquery - jqGrid: Multiple invocations of 'add' fails -
On the initial load, the built-in "add" function works as does not cancel relatively modal dialog for a long time. However, after canceling the invocation after the "add" result to be posted in an empty field for "paragraph" (in this case 'name'),
jQuery (document) .ready (function JqGrid ({jsonReader: {root: "gridmodel"}, url: "jsonGridTag.action", datatype: "Jason", Maitip: "Post" Colnames: ['tag_id', 'name', 'usage count'], colmodel: [{name: 'id', index: 'id', sortable: true, search: false}, { name: 'name' Index: 'name', width: 400, editable: true, edittype: "text", sortable: true, search is true, searchoptions: {sopt: [ 'cn', 'eq ',' 'Name', index: 'count', formatter: "format link", sortable: true, search: true, searchoptions: {sopt: ['eq', 'bw', 'ew']}}, {name: , 'ne', 'lt', 'gt' 'tags', Gridwu: right, pager: '3', Panktibddhः [300,1000,5000,10000] Sort name: 'name' Sort 'ACC' Sorted Rage: F, caption: 'tag' # pager, Toppejr: Trolons: Fotl, Aditurl 'JsonGridTagEditkaction, Selyull' JsonGridTagEditkaction, Seladit: Fotl, Maltiselekt: true, View Records: true}); JqGrid ( 'NavGrid', '# pager', {edit: true, add: true, del: true, refresh: true, see: true, search: correct, clonautop: truth,}); };
The problem is obvious, just not the solution ...
If you are having trouble sending additional data, you will need to apply it to an onclick submittent event like this:
$ ("# taggrid"). JqGrid ('navGrid', '# pager', edit: true, add: true, del: true, search: false, refresh: true}, {}, // edit options // add option {url: "../ controller? edit action = user" / Krenabaradytn off your URL: Seriously, again Lodabar: Submit: right, onclick Krensbmit: function (Paramej, Postdeta) {// here, jqGrid automatically adds these fields To your circlet (if you are using Java): ID, If you want to send additional data for your service, you have to send it back as follows: return {another_field: VALUE, one_more_field: VALUE}}}, {}, // You can see more information about jqGrid events at del opt ions {}, // search options {} // latest option
you can
Comments
Post a Comment