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'm not going to make believe I know what I'm talking about, but I would guess that the client side commit isn't working since there were no changes to the data in the grid. Is this true? Can you try making a change and then seeing if the commit works? Are you sure that the commit line is being hit in the code?
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.
The textbox is in the grid?
In Grid's RowEditingTemplate
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.