Custom filter by Checkbox control inTelerik GridView

3 posts, 0 answers
  1. Rakesh Gandhi
    Rakesh Gandhi avatar
    14 posts
    Member since:
    Apr 2010

    Posted 23 Jan 2012 Link to this post

    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. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 24 Jan 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Rakesh Gandhi
    Rakesh Gandhi avatar
    14 posts
    Member since:
    Apr 2010

    Posted 24 Jan 2012 Link to this post

    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
Back to Top