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

Custom filter by Checkbox control inTelerik GridView

2 Answers 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rakesh Gandhi
Top achievements
Rank 2
Rakesh Gandhi asked on 23 Jan 2012, 05:26 PM
Hello All,

We have a below requirement.

We are using Telerik GridView, and we have separate checkbox which have 'Y' and 'N' value. So based on checkbox we have to show all value in grid as "Y" and if we uncheck checkbox then in this case it should show 'N' value.

Please let us know how we can achieve this is in Telerik gridview.

Thanks,
Rakesh Gandhi.

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 24 Jan 2012, 07:28 AM
Hi Rakesh,

 
My recommendation would be to work on data level and once you check a particular CheckBox, to update the values for the properties from your business object. It could be something like follows:

foreach(Player item in this.myGridView.Items)
{
    item.Name= "Y";
    item.Country= "Y";
}

Will that approach suit your needs ? 

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Rakesh Gandhi
Top achievements
Rank 2
answered on 24 Jan 2012, 09:17 AM
Hello Maya,

Thanks for prompt reply!

Actually check box is outside as per attachment and it is different control and grid is also different control. So actually on checkbox checked we want to filter accordingly.

Thanks,
Rakesh Gandhi
Tags
GridView
Asked by
Rakesh Gandhi
Top achievements
Rank 2
Answers by
Maya
Telerik team
Rakesh Gandhi
Top achievements
Rank 2
Share this question
or