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

How to determine if there was validation errors after calling grid.SaveChanges in javascript

1 Answer 461 Views
Grid
This is a migrated thread and some comments may be shown as answers.
horo
Top achievements
Rank 1
horo asked on 02 May 2013, 04:44 PM
Hi to All,

I call grid.SaveChanges in a javascript function. My problem is if there was some _client_ side validation errors for example invalid date format, then I must not execute some DOM operations. Unfortunately grid.SaveChanges() hase no return value and searching for keyword 'valid' in grid documentation page has no result.

Thx in advance
Horo

1 Answer, 1 is accepted

Sort by
-1
Petur Subev
Telerik team
answered on 06 May 2013, 11:01 AM
Hello Horo,

You can invoke the validator manually with the following piece of code and check the result:

var result = $('#gridName').data().kendoGrid.editable.validatable.validate();


Kind regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
horo
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or