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

Grid InCell Mode Validation

1 Answer 488 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Armulator
Top achievements
Rank 1
Armulator asked on 01 Oct 2013, 08:30 PM
Hi,
I have followed this sample to see how validation works on the grid.

http://www.kendoui.com/forums/kendo-ui-complete-for-asp-net-mvc/grid/serverside-validation-during-pop-up-editing-not-working-with-custom-template.aspx

But I am unable to make it work with incell editing. When I change the edit mode to incell, the grid no longer has editable object available.

I guess what I am trying to do is somehow get the uid of the grid cell that caused the validation, and then use that and iterate over 

$(

 

"#Grid").data("kendoGrid").tbody to find the elment in the grid where I want to display the validation error as a tooltip

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 03 Oct 2013, 12:13 PM
Hi Armulator,

I am afraid that applying a custom validation on a Grid edited in InCell mode is currently not supported out of the box. You can build your own implementation using the Grid's save event to capture the old and new values as well as the dataItem's uid and the currently edited cell. This will allow you to create a validation rules and add a tooltip where it's necessary. You can find a small example of the above here, however keep in mind that this is not a complete solution and is not intended to fully comply with your requirements.

Regards,
Alexander Popov
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
Armulator
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or