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

[Solved] Re-apply Filters

2 Answers 112 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris
Top achievements
Rank 1
Chris asked on 17 Dec 2010, 04:35 PM
Hi,

I have a RadGridView bound to a datasource using MVVM. After changes have been made to any items in the collection, these changes are reflected in the grid auotmatically, however the filters applied are not updated to reflect changes i.e. archiving an item in the grid, with a filter on to only show non-archived items. Once archived I would like the item removed from the grid.

I have tried calling Rebind() but this has no effect.

Regards,
Chris

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Dec 2010, 08:44 AM
Hi,

 The grid will reapply filtering, sorting, grouping, etc. only after CollectionChanged of INotifiCollectionChanged collection. If you change only a property value only cell bindings will be updated. You can find more info about all these on this blog post. Please check also this post

Greetings,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Chris
Top achievements
Rank 1
answered on 21 Dec 2010, 04:07 PM
Thanx Vlad,

Was able to workaround this issue by signalling a change in the bound collection after the relevant command had fired.

Regards,
Chris
Tags
GridView
Asked by
Chris
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Chris
Top achievements
Rank 1
Share this question
or