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

[Solved] GridView filter displays records only for initial data bind

1 Answer 90 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.
Tushar
Top achievements
Rank 1
Tushar asked on 05 Sep 2009, 10:18 PM
Hi,

I am binding my RadGridView asynchronoulsy with data sets of 500 records. The filter displays records only for the initial bound set i.e only 500 column values but not the entire set when all the table values are populated. When more data sets add to the itemsource the all the records are displayed in the Grid whereas the filter still maintains the initial set and doesn't display all the records.

i tried following code: 
this.gridViewEventViewer.FilterDescriptors.Clear(); 
EventViewerGridViewModel dataContext = (EventViewerGridViewModel)DataContext; 
this.gridViewEventViewer.ItemsSource = dataContext.Data; 
this.gridViewEventViewer.Rebind(); 
 
this.gridViewEventViewer.FilterDescriptors.Reset(); 
this.gridViewEventViewer.CreateFilterDescriptions(); 

also...

 
                this.gridViewEventViewer.FilterDescriptors.Reset(); 
                EventViewerGridViewModel dataContext = (EventViewerGridViewModel)DataContext; 
                this.gridViewEventViewer.ItemsSource = dataContext.Data; 
                this.gridViewEventViewer.Rebind(); 

none of the above code worked for me. 

Will appreciate your response on this one.

Thanks,
Tushar

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 07 Sep 2009, 08:56 AM
Hi Tushar,

Can you provide a bit more info about your collection of objects? Generally the grid will rebind itself if the ItemsSource is INotifyCollectionChanged.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Tushar
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or