When I use WebImageButton as OKButton it does not fire WebDataGrid RowUpdating event.
I also tried to call grid.get_behaviors().get_editingCore().commit(); in client side but it did not work.
Does Infragistics support only regular asp:Button control for OKButton or am I missing something?
Thanks.
Hi,
I couldn't tell for sure what you meant, but you need to handle the rowupdated event SERVER SIDE in order for the client side commit() to work. You don't need to put any code into the rowupdated event.
Ed
I tried handling rowupdated server side event too. But it is not working.
I just made a full sample of what you were doing and I see the problem. I couldn't figure out how to make the WebImageButton fire that event. It seems lie they only allow the ASP buttons as you mentioned.
I just tested it by me and I see that the commit executes an ajax call even when I didn't change anything in the grid so that whole idea is out the window. When you hit the commit line in code, do you see the ajax indicator pop up? If not, I would go back to making sure the server side event is setup properly. If yes, then I guess the information in the row template is not in the grid itself and needs to first get back to the grid.
In Grid's RowEditingTemplate
The textbox is in the grid?
I am making a change in textbox but commit is not working. And I am sure that the commit line is being hit in the code.