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

validation

1 Answer 521 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Zoinky
Top achievements
Rank 1
Zoinky asked on 09 Jan 2014, 04:41 PM
I need to know how to set validation on the mulitselect so that if no
items are selected, client and server side validation  kicks in with
appropriate message. I am binding to a custom array list with text/value

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 10 Jan 2014, 08:27 AM
Hello Zoinky,

I would recommend using the KendoUI Validator for the client side validation. Basically you can initialize a Validator, define a custom rule that checks whether the MultiSelect has some items selected and if it doesn't - display an error message. For convenience I prepared this example, illustrating the above approach.
The server side validation is not directly related to KendoUI, however more information on that topic can be found on various resources over the Internet.

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
MultiSelect
Asked by
Zoinky
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or