Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
Triggering row add when user moves off the row adding row
posted

Hi,

I am using a WebDataGrid with the RowAdding behavior and the default RowAdding row at the top of the grid.  My users want the row add to be sent to the server if any of the add row cells have been populated and if the user then clicks on a different row.  Right now, the row add is only sent to the user if the user presses the enter key or else presses the tab key past the end of the row.

I am trying to test all of these conditions, but I'm having trouble first identifying the add row as follows:

sender.get_behaviors().get_editingCore().get_behaviors().getBehaviorByName("RowAdding").get_row();

getBehaviorByName("RowAdding") appears to be what is failing.  I have tried get_rowAdding() as well.  What is the correct method to get the Add row?

Once I get that, my plan is see if any cells in the add row are populated.  Next, I would to compare the Active row and see if it is the same row as the Add Row.  If not, then I would use the EditingCore.commit() method to send the added row to the server.  Does that make sense?

Parents Reply Children
No Data