How to show only selected rows in GridView

5 posts, 0 answers
  1. Hector
    Hector avatar
    92 posts
    Member since:
    May 2009

    Posted 09 Jun 2009 Link to this post

    I'm in search of a way to only show selected rows in the GridView.  I have tried the FieldFilterDescription but that only works on fields; is there a way to implement this with the IsSelected property of a Record?

    Thanks
  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 10 Jun 2009 Link to this post

    Hi Hector,

    I'm sending you a simple example which handles your scenario. It consists of two grids. First one is databound as usual, and the second one is bound to the selected items in the first grid. Please find it in the attached file.

    Hope this helps.

    Kind regards,
    Stefan Dobrev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Hector
    Hector avatar
    92 posts
    Member since:
    May 2009

    Posted 10 Jun 2009 Link to this post

    This is great, thank you.  However, this requires two Gridviews.  What I need is the ability to hide unselected rows or show all rows when the user clicks on an option.  I have a ComboBox with Show all, Show selected, Show Unselected as options.  Your sample gives me a good start, thank you very much.
  4. Madhan
    Madhan avatar
    11 posts
    Member since:
    Dec 2011

    Posted 02 Mar 2012 Link to this post

    Hi,

    I also need to implement the same in our case, Selected row should be placed in another RadGridView.
    Attached example looks ok. But I need to achive it in WPF. Is it possible to do the same?

    Please give the suggestion or solution to achive it using WPF RadGridView.

    Thanks,
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 02 Mar 2012 Link to this post

    Hello,

     You can check this demo for more info. The same is available in your local copy of our WPF demos. 

    Greetings,
    Vlad
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top