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

Update two rows question

2 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 19 Aug 2008, 01:55 PM
If I have a grid with 30 records and I update two of them can I only refresh the two rows updated or do I have to rebind the whole grid to get the updates.

i.e. I have a checkbox in the row, if a user selects one or many checkboxes and presses a submit button to change the status of the row from ready to complete I would like to have only the rows with checkboxes updated to complete and not go back the database and rebind the data.  Is this possible?  If so how?

2 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 21 Aug 2008, 02:49 PM
How do I update the RadGrid on the client side using the ViewState?

Say I have 20 rows and 10 columns.  I update inline a column of a row, but I don't want to go back to the database I just want to update that one row and column.

Thanks!
0
Accepted
Leon
Top achievements
Rank 1
answered on 21 Aug 2008, 08:20 PM
Client-side and ViewState?

You can bind the Grid on the client as well as perform insert/update/delete operations on the client as demonstrated on the demos below. Otherwise you need to rebind the Grid on the server since you cannot rebind some items only.

http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/Client/InsertUpdateDelete/DefaultCS.aspx
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/Client/DataBinding/DefaultCS.aspx

Hope that helps!
~Leon
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Leon
Top achievements
Rank 1
Share this question
or