According to http://ko.infragistics.com/samples/aspnet/hierarchical-data-grid/batch-updating, a save button that just does a post back is supposed to fire off the row add/update/delete server side events. However, when I do this that does not seem to happen. The events are not fired unless I press enter after editing a cell in the new row. I've attached an example site with a WHDG that illustrates the problem. Why is it that enter key press can cause a post back that will fire off the server events but pressing a save button will not? Is there some special setting that enables this?
Thanks
Hello bartstripes,
RowAdding server side event is going to be triggered either when Enter key is pressed or Tab key is pressed to the last cell in the row. This is the moment when after entering data to Add New Row it loses focus. Only then this row is inserted in WebHierarchicalDataGrid and its underlying data source.
Some further reference about Row Adding feature could be found at:
http://help.infragistics.com/doc/ASPNET/2014.1/CLR4.0/?page=WebHierarchicalDataGrid_Enabling_Row_Adding.html
I tested your sample and the RowAdding event is correctly triggered when the enter key is pressed or when the last cell from the row is tabbed.
I hope you find this information helpful.
Please let me know if you need any further assistance with this matter.
Hi Tsanna, I tried again and you are correct the RowUpdating event is being fired properly. However, I'm not able to get RowAdding to fire.
For the child add my steps are:
For the parent add my steps are:
Hello bartsipes,
Please feel free to contact us if you need any further assistance with this matter.
Thank you for posting in our community.
I tested your sample, however it works properly on my side. I tried to edit one cell and then press the button, and RowUpdating event fired properly. Also RowAdding and RowsDeleting events fire as expected. I didn't change anything in your sample. Could you please explain me in details how exactly are you testing these events whether they fire properly?
Looking forward to your response.
Sincerely,
Tsanna