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

issue with currentNode.get_parent()!=null

3 Answers 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Aleksandar
Top achievements
Rank 1
Aleksandar asked on 22 Oct 2008, 11:15 AM
-In documentation,  currentNode.get_parent()!=null is suggested as good condition to find the last, top node as .get_parent() should return null for TreeView. This works fine if tree view is not in RadPane (not tested for other containers). When TreeView is in RadPane, .get_parent() is not null for treeview as RadPane is considered Parent for some reason. What is the solution to this?

-How can one limit number (or type) of characters entered in RadTree node durig editing?

Alex

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 22 Oct 2008, 12:23 PM
Hello Aleksandar,

Please check the two methods described here:
(ID#910) How to distinguish whether node.get_parent returns the parent node or the parent treeview?

I hope this helps.

Regards,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Aleksandar
Top achievements
Rank 1
answered on 23 Oct 2008, 03:43 AM
Hi Veselin,
Including this into your documentation (help file distributed with your components) would be helpfull.

Any info on my second question?

Alex
0
Veselin Vasilev
Telerik team
answered on 24 Oct 2008, 08:26 AM
Hi Aleksandar,

We already included that in the documentation - it will be online next week.

About your second question - you can subscribe to the OnClientNodeEditing event.

I hope this helps.

Greetings,
Veselin Vasilev
the Telerik team

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