jQWidgets Forums
Forum Replies Created
-
Author
-
August 27, 2015 at 11:54 am in reply to: what's the point of "var commit = …" what's the point of "var commit = …" #75208
Hi Mariya,
Thank you for your explanation. I was thinking variable “commit” has something to do with the callback “commit”.
Now it’s clear.
Thank you.
August 26, 2015 at 11:45 pm in reply to: what's the point of "var commit = …" what's the point of "var commit = …" #75196Hi Mariya,
Thank you for your reply. Sorry I didn’t make my question clear, I’m looking at the example from: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/createremoveupdatedata.htm
What I don’t understand is this part, the last line clears a variable called “commit” which seems never used after. What’s the point of doing this?
$("#deleterowbutton").on('click', function () { var selectedrowindex = $("#jqxgrid").jqxGrid('getselectedrowindex'); var rowscount = $("#jqxgrid").jqxGrid('getdatainformation').rowscount; if (selectedrowindex >= 0 && selectedrowindex < rowscount) { var id = $("#jqxgrid").jqxGrid('getrowid', selectedrowindex); var commit = $("#jqxgrid").jqxGrid('deleterow', id); } });
Thank you
August 10, 2015 at 7:39 am in reply to: key/value column with everpresentrow key/value column with everpresentrow #74663Hi Peter,
Is there any workaround at this stage?
thank you.
August 5, 2015 at 11:58 am in reply to: endrowedit always trigger rowupdate endrowedit always trigger rowupdate #74543Hi Ivailo,
I thought since there is no “rowvaluechanged” event the “cellvaluechanged” event would be triggered for any cell edit.
Thank you.
August 5, 2015 at 6:29 am in reply to: endrowedit always trigger rowupdate endrowedit always trigger rowupdate #74523August 4, 2015 at 11:09 am in reply to: endrowedit always trigger rowupdate endrowedit always trigger rowupdate #74507August 4, 2015 at 5:28 am in reply to: endrowedit always trigger rowupdate endrowedit always trigger rowupdate #74483Hi ivailo,
$("#jqxGrid").jqxGrid('endrowedit', 0, false);
the above code will update server with changed data.$("#jqxGrid").jqxGrid('endrowedit', 0, true);
the above code will update server with old data.Am I right? Then is it possible to let it not update server for the second code?
Thank you
August 3, 2015 at 12:33 pm in reply to: validateeverpresentrowwidgetvalue execute twice? validateeverpresentrowwidgetvalue execute twice? #74441Hi Peter,
Reason is the error message displays as tooltip (correct me if I’m wrong), if I can access the message I can put it in a warning panel or something similar.
Regards.
August 3, 2015 at 10:59 am in reply to: validateeverpresentrowwidgetvalue execute twice? validateeverpresentrowwidgetvalue execute twice? #74428Hi Peter,
Thank you.
Is it possible to access the error message raised in the validation function?
return {message: “Entered value should be more than 5 characters”, result: false };
August 3, 2015 at 7:39 am in reply to: validateeverpresentrowwidgetvalue execute twice? validateeverpresentrowwidgetvalue execute twice? #74416Hi Peter,
May I ask why the validation function is called twice? According to your reply, it is to validate all editors in the row, does it mean there are 2 editors in the row? but there are 4 columns, all editable.
Sorry to bring this old post up, but it is eating me up, I just can’t figure it out.
Thank you
August 3, 2015 at 7:23 am in reply to: Update row with server returned data Update row with server returned data #74414Hi Dimitar,
Thanks for your reply.
One more question please: does commit(true, db_id) only work in “addrow” callback? It seems doesn’t work in the “updaterow” callback.
Thank you.
August 1, 2015 at 1:00 am in reply to: Update row with server returned data Update row with server returned data #74390Just found this in the document:
// you can pass additional argument to the commit callback which represents the new ID if it is generated from a DB.
So the solution would be:
commit(true, data.id)
am I right?
-
AuthorPosts