|
<ej:Grid ID="Grid1" runat="server" AllowPaging="True" DataSourceID="test34" ClientIDMode="AutoID" DataKeyNames="memberId" >
. . . . .
<ej:Column Field="HomePortCode" HeaderText=" Home Port Code" Width="190px" EditType="Dropdown" TextAlign="Left">
<ValidationRule>
<ej:KeyValue Key="customRegex" Value="5" />
</ValidationRule>
</ej:Column>
. . . . .
</Command>
</ej:Column>
</Columns>
</ej:Grid>
<script type="text/javascript">
$(function () {
$.validator.addMethod("customRegex", function (value, element, params) {
if (element.value != "N/A" && element.value != "")
return true;
return false;
}, "Select a valid value");
});
</script> |
|
|
Hi Vignesh,
Thank you for you support.
Issue is solved.
Best Regards,
Yukiko