This is a migrated thread and some comments may be shown as answers.
Kendo Grid Incell edit remote validation not working
2 Answers 132 Views
This is a migrated thread and some comments may be shown as answers.
Sagar
Top achievements
Rank 1
Sagar asked on 21 Feb 2014, 07:10 AM
I am trying perform batch editing in kendo grid.

My remote validation is not working properly

In Page source it show all the attributes related to remote validation

<input data-bind="value:Name" class="text-box single-line" data-val="true" data-val-length="Name cannot exceed 100 characters." data-val-length-max="100" data-val-remote="Option name already exist" data-val-remote-additionalfields="*.Name,*.Id,*.ParentOptionId" data-val-remote-url="/Options/OptionNameUnique" data-val-required="The Name field is required." id="Name" name="Name" value="" type="text">


Still remote validation not getting called.

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 25 Feb 2014, 09:16 AM
Hello,

I am afraid that remote validation is not currently supported by the Kendo Validator which is used for the Grid. If this is needed in your scenario then I can suggest to implement a custom validation rule as demonstrated in this blog post. In order for the custom rule to be used for the validator created by the Grid, you should extend the validator as described in this documentation topic.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
same problem in 2021, "additionalfields" "InCell" mode seems do not boud to the validator (always 0)
- by
serge
Top achievements
Rank 2
Bronze
Iron
Iron
on 23 May 2021, 09:43 PM
Hi Serge,

The fastest route to getting you up and running is if you could provide a runnable, isolated, sample project. Examining this project will let us replicate the issue locally and further troubleshoot it.

Looking forward to hearing back from you.

Kind Regards,
Anton Mironov
- by
Anton Mironov
Telerik team
on 25 May 2021, 12:22 PM
you can have it from your colleague - Mihaela https://www.telerik.com/forums/remote-validation-with-additionalfields-when-editing-the-grid just put InCell mode in that project
- by
serge
Top achievements
Rank 2
Bronze
Iron
Iron
on 25 May 2021, 04:58 PM
Hi Serge,

As per my assumptions, you are trying to use the validator for the Kendo UI Form in Kendo UI Grid. In this case, I would recommend using the Schema for the model in order to set the Front End validations and Data Annotations for the Back End.
- by
Anton Mironov
Telerik team
on 27 May 2021, 09:16 AM
I use DataAnnotations for the backend. I suppose DataAnnotations are not specific to UI Form, it works also with UI Grid. However, not in *InCell* edit mode.
- by
serge
Top achievements
Rank 2
Bronze
Iron
Iron
on 27 May 2021, 12:43 PM
The project Mihaela provided in the thread above is working well, but not in InCell mode. We need it for the InCell mode as well...
- by
serge
Top achievements
Rank 2
Bronze
Iron
Iron
on 27 May 2021, 12:44 PM
0
Anton Mironov
Telerik team
answered on 31 May 2021, 11:35 AM

Hello Serge,

As I can see from your communication with Mihaela, she sent you a runnable sample project with the needed InCell editing and required validation.

I attached it here as well. Make the needed tests locally and let me know if further assistance is needed.

 

Kind Regards,
Anton Mironov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Sagar
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Anton Mironov
Telerik team
Share this question
or