Runtime adding issue to RadTreeView

2 posts, 0 answers
  1. Ganesh Jagdale
    Ganesh Jagdale avatar
    69 posts
    Member since:
    Dec 2009

    Posted 04 Feb 2010 Link to this post

    Hi telerik,

    I have one problem while creating RadTree at runtime. 
    In that RadTreeViewItemHeader  is not shown untill and unless we click it. and that appear below(it taks largeheight) the same Item on which i click.
    I just write code like which is very simple  ...

     

     

    RadTreeView navigationTree = new RadTreeView();

     

     

     

    for(int i=0;i<3;i++)

     

    {

     

    RadTreeListViewItem radTreeListViewItem = new RadTreeListViewItem();

     

    radTreeListViewItem.Header =

    "Hi this is telerik";

     

     

    for(int j=0;j<3;j++)

     

    {

     

    RadTreeListViewItem childRadTreeListViewItem = new RadTreeListViewItem();

     

    childRadTreeListViewItem.Header =

    "Hi this is Tree View";

     

    radTreeListViewItem.Items.Add(childRadTreeListViewItem);

     

    }

    navigationTree.Items.Add(radTreeListViewItem);

    }

     

    LayoutRoot.Children.Add(navigationTree);

    I don't know why this happened..

    Pls Help me ...


    Thanks,
    Ganesh

     

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 05 Feb 2010 Link to this post

    Hello Ganesh Jagdale,

    After examining your code I saw that you're trying to use a RadTreeListViewItem instead of RadTreeViewItem.

    Please change that and let us know if you have any additional questions.

    Sincerely yours,
    Tina Stancheva
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top