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

function to Validate entire grid

6 Answers 499 Views
Validation
This is a migrated thread and some comments may be shown as answers.
cosmin
Top achievements
Rank 1
cosmin asked on 31 Mar 2015, 05:08 PM
Hello, I am able to configure and use grid validation successfully. 
However, I was wondering if there's any way to programatically check if the entire grid is valid or not.

6 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 02 Apr 2015, 09:02 AM
Hello Cosmin,

I am afraid that this is not possible. Validator is initialized only for the currently edited row (or cell) and it is possible to open for editing only one row (or cell) at a time.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
cosmin
Top achievements
Rank 1
answered on 02 Apr 2015, 09:19 PM
This might be a bit too much to ask but, do you think you can put together an example that at the click of a button adds a new row to a grid and sets the newly entered row in edit mode?
0
cosmin
Top achievements
Rank 1
answered on 02 Apr 2015, 09:21 PM
This might be a bit too much to ask, but do you think you can put together an example that at the press of a button, a new row is added to a grid, and that newly entered row is set to edit mode?
0
Alexander Valchev
Telerik team
answered on 06 Apr 2015, 08:32 AM
Hi Cosmin,

Basically all you need to do is to hook up to the click event of the button and call the addRow method of the Grid.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
cosmin
Top achievements
Rank 1
answered on 08 Apr 2015, 06:18 AM
Thank you for your help!
0
Brady
Top achievements
Rank 1
answered on 22 Jul 2015, 03:21 PM
Cosmin, Peter Subev answer this question correctly.
ref: http://www.telerik.com/forums/how-to-determine-if-there-was-validation-errors-after-calling-grid-savechanges-in-javascript
Tags
Validation
Asked by
cosmin
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
cosmin
Top achievements
Rank 1
Brady
Top achievements
Rank 1
Share this question
or