I have a WebDataGrid that is populated from a database. I also have a button and a dropdown on the page. The dropdown controls what data is displayed in the WebDataGrid. The RowUpdating gets called when I update a value and click on another row or click the button. However, if I click the dropdown or anywhere else on the page, RowUpdating does not get called. I need it to be called whenever the WebDataGrid loses focus and a row has been updated.
Please let me know if you still need help with this issue.
Thanks, that does help. However, I would like it so that the record would be updated whenever the user leaves the row, not just when they where on the last cell. The user may only edit one column (not the last) and then click somewhere else on the page. I don't want the row to be updated every time the use exits edit mode, just when they leave the current row.
The grid's Selection behavior has a RowSelectionChanged client event that can be used to detect when the row changes. You can read more about the selection behavior in our documentation here:
Calling the commit method in this event will send the info when the row changes.
Please let me know if you need further assistance with this and I'll be glad to help.
The RowSelectionChanged client event does not fire if the user clicks off of the grid completely. Also, if the user edits a cell and tabs to the next cell, the event fires. I would think it shouldn't fire in this case since the selected row did not change, only the selected cell. Is there an event that fires whenever the WebDataGrid loses focus where I could call the commit method from?
I'm going to need more time to research this. I'm testing and working on a sample to achieve your desired effect.
I will have another update for you by Thursday. Please let me know if you have any questions or concerns with this.