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

kendovalidation for kendo objects

1 Answer 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
PAUL
Top achievements
Rank 1
PAUL asked on 21 Aug 2012, 12:06 PM
I would like to write some client side validation for kendo objects when the save button is clicked...however I am having trouble doing so. For example I have two autocompletes that have the same data bound to them. One of them cannot be empty. And if both have a value they both cannot be the same value (name). I also have a currencytext box that cannot be empty to create the record.

All of the validation examples I have found so far deal with regular web inputs. I just figured out, thanks to this forum how to set focus to a kedno object. It was no where in documenation and intellisence did not pick up the .siblbings on the second line of code. Also Iwould of had no idea to put ("input:visible").focus();  on the second line either. Can you point me to a demo that validates ACTUAL Kendo objects on a web form? Thanks...brand new at this

 

 

var numeric = $("#AuthBudget").kendoNumericTextBox();
numeric.siblings(
"input:visible").focus();

 

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 24 Aug 2012, 07:01 AM
Hi Paul,

Such example is present in our validator documentation (scroll to the bottom). The numeric textbox widget also has a focus method.

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