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

Expander Image should always be displayed

3 Answers 129 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Prash
Top achievements
Rank 1
Prash asked on 04 Mar 2009, 02:07 PM
Hello,


I have a requirement wherein I want that the expanding image should always be visible irrespective of the child Item present or not.

I tried a lot but could not get how to do it.

A sample code would be helpful.

thanks and regards

3 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 09 Mar 2009, 05:21 PM
Hi Prash,

I am attaching a sample project that demonstrates how you can implement your scenario. Let me  know if you have further questions.

Kind regards,
Tihomir Petkov
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.
0
Jose
Top achievements
Rank 1
answered on 18 Nov 2011, 07:20 PM
I have a similar requirement but in my case I need the expander to look like it has items underneath it (arrow facing down for example).

I did something similar to this on a TreeListView by setting the "IsExpandable" property to true during the RowLoaded event.  Is there something similar on the TreeView?
0
Tina Stancheva
Telerik team
answered on 23 Nov 2011, 03:06 PM
Hi Jose,

You can follow the same approach but define a custom style for the Expander element of the RadTreeViewItems. The RadTreeView control exposes a ExpanderStyle property that allow you to set a custom style for the expander element of the items.

Please take a look at the sample I attached and let me know if it helps.

Greetings,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TreeView
Asked by
Prash
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Jose
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or