Hi Robert,
With a normal RadTreeView without any styles added to it, this behavior doesn't occur. Perhaps you are using a skin, theme or templates in your treeview, which is the reason for this appearance.
As for your second question, you can determine whether a user can select a node using the
OnClientNodeClicking event. The handler function for this event receives two parameters: the TreeView and an EventArgs argument. If you set
eventArgs.set_cancel(true), you basically cancel the click. Here's the full function:
The same can be done for expanding and collapsing: you just use the
OnClientNodeExpanding and
OnClientNodeCollapsing functions. In both functions you again have
args.set_cancel available to cancel the action.
Kind regards,
Bozhidar
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license!
Book your seat now >>