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

Validation on MultiSelect

1 Answer 31 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 2
Oscar asked on 17 Jul 2013, 06:45 AM
How can I use validation on a MultiSelect when using PHP wrappers to render the control? I know with HTML you can use the attribute "required" on the "select" tag but how is this done using PHP wrappers?

1 Answer, 1 is accepted

Sort by
0
Accepted
Oscar
Top achievements
Rank 2
answered on 17 Jul 2013, 07:00 AM
Never mind. Found the attr function for the Widget few seconds after posting this question.

If someone else is looking for the same:
$multiSelect = new \Kendo\UI\MultiSelect("multiSelect");
$multiSelect->attr('required', true)

Tags
MultiSelect
Asked by
Oscar
Top achievements
Rank 2
Answers by
Oscar
Top achievements
Rank 2
Share this question
or