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

Save operation only on filtered out rows

3 Answers 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Adi
Top achievements
Rank 1
Adi asked on 16 Aug 2010, 05:03 PM
Hi All,

I am having a checkbox in the column header of one of the columns in my radgridview which is bound to a collection of entities in the viewmodel.  I am using the filtering capability of the radgridview, and when I check the checkbox in the header, check boxes in each record are being checked and not just those that are visible after applying the filter. Now, I wan't only the rows visible after filtering to be marked as checked and latter on saved. Can you suggest me how to go about this?

I tried to find out if the row is visible using the rowloaded event but due to paging only those rows which are in the first page are affected and not all the filtered out records!

Thanks,
Adi

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Aug 2010, 06:25 AM
Hello Adi,

 Generally visible (created) rows can be found using ItemContainerGenerator similar to this demo

Greetings,
Vlad
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
Adi
Top achievements
Rank 1
answered on 17 Aug 2010, 03:31 PM
Hey Vlad,

Thanks for your prompt reply!

Even after using ItemContainerGenerator I am facing the same problem i.e. only the visible row capable of being displayed in one page are taken into account and not the rest of the rows which are there after filtering but not visible because of paging. Can you please suggest how  can I somehow get access to those rows. 

Thanks,
Adi
0
Vlad
Telerik team
answered on 17 Aug 2010, 05:02 PM
Hi ,

I'm afraid that I don't understand your scenario. Generally when a collection is paged you can access only items on the current page since other items are not available. 

All the best,
Vlad
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
Tags
GridView
Asked by
Adi
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Adi
Top achievements
Rank 1
Share this question
or