Same GridView in differents TabItens

3 posts, 1 answers
  1. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 14 Mar 2012 Link to this post

    Hello.
    I need to implement a scenario in my application that is, a TabControl with 5 tabItens. Inside of each TabItem i need a GridView to display de data. The doubt is, the RadGridView, will be the same(i mean, have the same structure) for all of the TabItens, just it's ItensSource will be different, I don't know but seems to me that creating five same GridViews in XAML aren't the best way. I'm looking for a best and easier way to do this, can you help me with this?

    Thank you.
  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Mar 2012 Link to this post

    Hello,

     If you want you can define the grid in a custom user control with desired settings and reuse this user control in your tab items. 

    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 >>
  3. DevCraft banner
  4. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 15 Mar 2012 Link to this post

    Hello Vlad,

    Thank you for your help, we decide to use another way, i've created a user control with HyperlInk Buttons, like a menu, and put the GridView below them, now when the user click in a hyperlinkbutton i just change the collection.

    Best regards.

Back to Top