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

Add an item to a node but not within selection div

3 Answers 37 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
fino
Top achievements
Rank 1
fino asked on 31 Oct 2008, 01:54 PM
Help, how do i add a control to a node but without it being within the selected hotspot i.e. when it is clicked it doesn't changed the selected node?

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Nov 2008, 11:18 AM
Hello fino,

You can use templates. Please, see the following help topics:

Templates Overview 

Adding and Editing Templates at Runtime    


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
fino
Top achievements
Rank 1
answered on 03 Nov 2008, 03:24 PM
Thanks, but another question..

In the example http://demos.telerik.com/aspnet/prometheus/TreeView/Examples/Functionality/Templates/DefaultCS.aspx

The whole node appears to get highlighted as if the outer div has a mouseover/on-click event on it. In this example I would like the various tree node CSS properties to NOT apply to some items. Is this possible?
0
Peter
Telerik team
answered on 04 Nov 2008, 03:29 PM

Hello fino,

This is not supported out of the box. You could try using the SelectedCssClass property and a custom CSS class which removes the background and the other "selected" appearance attributes.

Let us know if you need further assistance.


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
fino
Top achievements
Rank 1
Answers by
Peter
Telerik team
fino
Top achievements
Rank 1
Share this question
or