We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DialogEditorTemplateID To UpdateURL from customTemplate Not working

Thread ID:

Created:

Updated:

Platform:

Replies:

130641 May 23,2017 05:58 AM May 24,2017 08:21 AM ASP.NET MVC 1
loading
Tags: Grid
ARMohan
Asked On May 23, 2017 05:58 AM

     Hi,

I have used the link: https://www.syncfusion.com/kb/4375/dialogtemplate-edit-mode-how-to-set-validation-for-a-column-based-on-another-column-value
to create my own edit template. with this template i am able to add records. For delete also, no issues,just select a record from grid and delete & deleterURL is called.
The problem is with calling UpdateURL. 
I have a required field say: Description. Now if i select a record from Grid and click pencil icon(Edit button). then my Template opens showing all data, including the
Description field is showing. The problem is, on CLick of "Save" button the UpdateURL is called only if i am changing the value in the required field: Description.
Below is the MVC way i have added the validation rule.
col.Field("PRODUCT_DESC_EN").HeaderText("PRODUCT_DESC_EN").Width(100).ValidationRules(v => v.AddRule("required", true)).Add().

The UpdateURL should be called even if i am not updating the 'required' description field, since this field has the value already.

How to resolve this issue.

mail id: mram@amtpl.com


Saravanan Arunachalam [Syncfusion]
Replied On May 24, 2017 08:21 AM

Hi ARMohan, 
Thanks for contacting Syncfusion’s support. 
We are sorry that we are unable to reproduce the reported issue and we suspect that you have not referred the jQuery’s validation script file on your project. So, please ensure whether you have referred the jQuery validation script file. Please refer to the below code example and online help document. 
<html lang="en"> 
    <head> 
        . . . 
        <script src="~/Scripts/jquery.validate.min.js"></script> 
        <script src="~/Scripts/jquery.validate.unobtrusive.js"></script> 
    <script src="~/Scripts/ej/ej.web.all.min.js"></script> 
    </head> 
 
Regards, 
Saravanan A. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;