Issue in accesing controls inside rad tab item

2 posts, 0 answers
  1. Rana Pratap
    Rana Pratap avatar
    16 posts
    Member since:
    Sep 2009

    Posted 18 Oct 2009 Link to this post

    Hi telerik team,

    I have a tab control structure shown below


    Now for accessing gridview control its very simple in xaml.cs i.e  through Radtabitem.content. If i want to add two more controls inside rad tab item i am getting error saying "Content is Present more than once". If i use stack panel , i tried to access the controls but iam not able to access them. can you please suggest me better approach to have multiple controls inside radtab item and accesing them inside selection tab changed event i.e in xaml.cs file.

    Thank in advance
    Rana Pratap
  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 20 Oct 2009 Link to this post

    Hi Rana,

    Yes, the TabItem is a content control and it can have only one direct child as content. You can always wrap the GridView in a panel and add the other controls there:


    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top