jQWidgets Forums
jQuery UI Widgets › Forums › Grid › setcellvalue on cellvaluechanged is breaking the tab navigation
Tagged: grid, javascript grid, jquery grid, jqwidgets grid
This topic contains 8 replies, has 2 voices, and was last updated by Peter Stoev 9 years, 11 months ago.
-
Author
-
Hi jqWidgets Team,
need your help again.
Scenario:
– When the value for a cell has changed (
cellvaluechanged
) a http request is sent to the server in order to format the given value
– If the request was successful, the cell value must be changed to the formatted value (setcellvalue
)The user should be able to navigate to the next cell in Grid using the tab key after he did the steps described above. Yet, there seem to be a problem, cause the next cell is not selected, so it can not be changed.
Any ideas how can I fix this? Please note that I need to work with cell, not row.
Regards,
IoanaHi ioana,
You should never call setcellvalue within cellvaluechanged. This is wrong approach which will cause Exceptions due to the fact that setcellvalue will raise the event cellvaluechanged. The updaterow function of the source object is called when a cell value is changed and there you should make your server callls.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
thank you. I am trying this right now. The information about the row I have in the
updaterow
parameters, but how can I get the information about the column? I need to identify the current cell.Regards,
IoanaHi Ioana,
cellbeginedit is raised when your editing begins. There you can identify which cell is in edit mode.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comSuper, it works!
Regards,
IoanaHi Peter,
in Chrome and Mozilla works fine, as I stated before, but in Internet Explorer after the cell value changed and the next cell (using tab key) is selected and in edit mode, the user can not edit.
The http requests are async.Any idea on this?
Regards,
IoanaHi Ioana,
I don’t understand your issue. tab navigates to next cell and that’s it. If the cell is in focus, the user will be able to edit it, otherwise he/she won’t be able to edit it.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comEntire Grid is in edit mode.
1. first cell selected, value changed
2. tab key used to go to next cell, in order to edit it.The second cell is selected and visually in edit mode, yet the value can not be edit. Only in Internet Explorer.
OK. If we reproduce it, we will add work item for future release. In general you can use the “focus” method to focus some HTML element.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.