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

paging grid and sorting

1 Answer 7 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ro
Top achievements
Rank 1
Ro asked on 11 May 2015, 11:04 AM

Hi,

I have a grid with paging.

If I go to another page which isn't the first one,
and then press on one of the headers and sort the column,
then I click on the Add button,
the first row is added immediately , regardless Required fields and  Validation,
although the user didn't press on V!  (the confirmation button)

(attach file)

Do you have any idea why does it happen?

Thanks…

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 13 May 2015, 07:40 AM

Hello Ro,

The Kendo UI validation is UI based, which means that the Kendo UI Grid will validate what the user has entered and not what the default value is. So in your case our suggestion is to set default value (using the defaultValue option) for the newly inserted items, so you do not have undefined items in your records.

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