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

custom validator

1 Answer 42 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Gernot
Top achievements
Rank 1
Gernot asked on 03 Jul 2008, 07:08 AM
Hi,
is it posible to use the required field validator with TreeView.
I need that the user selects min. one "Node".
Do i really need to use a custom validator?

Many Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 03 Jul 2008, 07:42 AM
Hello Alaeddin Gedik,

I believe that the best way is to use custom validator.
In its ClientValidationFunction you will find the instance of the treeview and check the length of the get_selectedNodes array.
You should do the same in its ServerValidate event handler.

I hope this helps.

Best wishes,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Gernot
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or