This is a migrated thread and some comments may be shown as answers.

Runtime adding issue to RadTreeView

1 Answer 25 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ganesh Jagdale
Top achievements
Rank 1
Ganesh Jagdale asked on 04 Feb 2010, 03:45 PM

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

 

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 05 Feb 2010, 05:45 PM
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.
Tags
TreeView
Asked by
Ganesh Jagdale
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or