Hello,
i want to disable one select field name=’gebuehr_text’, when addig a new row into the subgrid. My alert fires when adding the new row into the subgrid, but my code to disable this select field do not work…. Any Ideas, what is wrong with the code?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
//The Subgrid inlineNav $("#" + childGridID).inlineNav("#" + childGridPagerID, { edittext: "Edit", addtext: "Add", savetext: "Save", canceltext: "Cancel", addParams: { position: "afterSelected", addRowParams: { new row keys: true, oneditfunc: function (rowid) { alert("new row with rowid=" + rowid + " are added."); // THIS CODE DO NOT DISABLE THE SELECT $("select[name='gebuehr_text']").prop("disabled", true); // THIS CODE DO NOT DISABLE THE SELECT also $("#"+ rowid + "_gebuehr_text").prop('disabled', true); } } },editParams: { // the parameters of editRow key: true, oneditfunc: function (rowid) { alert("row with rowid=" + rowid + " is editing."); // $("#jqg2_gebuehr_text]").prop("disabled", true) } } }); |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top