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

Update just one row in RadGridView

5 Answers 329 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hadrien
Top achievements
Rank 1
Hadrien asked on 07 Dec 2012, 10:14 AM
Hi,

I have a RadGridView and I bind a collection of objects (a large amount of data). I also have a context menu which is associated to each grid row and each context menu option will modify the grid view.
At this moment, every time an option is selected through context menu I refresh (rebind) all object collection which contain the correct information. The problem is that works fine when there are a few elements which is not my case.

So, I would like to know if there exists a way to "refresh" only the row which refer to opened context menu in order to avoid the actual lag.

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 07 Dec 2012, 11:17 AM
Hello,

 You can refresh this row if you replace the data item in your collection associated with this row. This will trigger CollectionChanged Replace and the grid will recreate the row. 

Kind regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Hadrien
Top achievements
Rank 1
answered on 10 Dec 2012, 11:16 AM
Do you have some demo where I can figure out how to use it?
0
Vlad
Telerik team
answered on 10 Dec 2012, 11:38 AM
Hi,

 You can check this demo. The same example can be found in your local copy of our WPF demos. 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Hadrien
Top achievements
Rank 1
answered on 12 Dec 2012, 09:30 AM
Hi,

In this example, the rows which are updated are random chosen. But I want to update only the one where the right click is performed (row context menu).
Can you create just a small example how it is possible to do it?

Thanks.
0
Hadrien
Top achievements
Rank 1
answered on 19 Dec 2012, 10:58 AM
Any idea?
Tags
GridView
Asked by
Hadrien
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Hadrien
Top achievements
Rank 1
Share this question
or