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

Refreshing my Grid

2 Answers 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 26 Jun 2011, 11:33 PM

I have two gridviews on my page.
Both are bound to a ViewModel, in the viewmodel i have two 
QueryableDomainServiceCollectionViews
The two grid are bound to those.
I have also a button that voids the records on the first grid. It simply sets a flag to 4 from it's original 1.
The first grid shows all items that have the flag set to 1 and the second grid to items that have the flag set to 4.
When i press the button, the item correctly disappears from my grid, however it does not appear in the second grid even though it has the right flag.
When i click on the second grid and sort it, it does appear.
How can i make the second grid load it's data when i press the void button.
I tried using the .Load() command on the
QueryableDomainServiceCollectionView but it did not appear to do anything at all.

2 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 27 Jun 2011, 08:40 AM
Hi Andrew,

Unfortunately, we cannot what exactly is going on in your project based solely on your description of the behavior.

Can you please prepare a small dummy project that demonstrates this and we will immediately take a look at it. We need to have something that we can actually debug.

Thanks in advance. We are looking forward to hearing from you.

P.S. By the way, if you are simply changing the property of a data item, grid's will not listen for its PropertyChanged. You have to help them by calling RadGridView.Items.EditItem(dataItem), then change the propererty and then finally call RadGridView.Items.CommitEdit(). Maybe this can help you.

In case it does not, we will be waiting for your sample project.

Kind regards,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Andrew
Top achievements
Rank 1
answered on 27 Jun 2011, 03:27 PM
Thanks
Tags
GridView
Asked by
Andrew
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or