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?
Hi rbailey003,
Have you tried the following?sender.get_behaviors().get_editingCore().get_behaviors().get_rowAdding().get_row ();
regards,David Young