This is a migrated thread and some comments may be shown as answers.

[Solved] Radgrid item Edit

1 Answer 174 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Bhavani Arunachalam
Top achievements
Rank 1
Bhavani Arunachalam asked on 16 May 2008, 12:58 PM
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

Sort by
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.

Best wishes,
Iana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Bhavani Arunachalam
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or