I am binding an Generic List of objects to the Radgrid on a button click .How to perform the edit operation of the items in the Radgrid on the click of GridEditCommandColumn and on click of another button in the Page i have to perform the batch update
Thanks in advance
Bhavani A
1 Answer, 1 is accepted
0
Iana Tsolova
Telerik team
answered on 17 May 2008, 11:13 AM
Hi Bhavani Arunachalam,
I suggest that you use Grid's advanced data-binding through the NeedDataSource event. Thus, once you fill its data source on button click, you only need to call its Rebind() method and RadGrid will be displayed with the desired data. Additionally, RadGrid will fire the NeedDataSource event each time it needs to be bound - in case of sorting, paging, editing, etc.
When you have added GridEditCommandColumn to your grid, the grid is automatically going into edit mode on edit button click. If you still would like to perform some additional operations on edit command, you could do that on grid EditCommand event. An UpdateCommand event is available to handle the update command.
Find more about the server-side API of RadGrid here. More information about batch updates is available here.
Let know if other questions arise and if we could assist you further.