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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to resolve the TypeError n(…).valid is not a function in Spreadsheet

Platform: jQuery |
Control: ejSpreadSheet |
Published Date: February 15, 2019 |
Last Revised Date: May 22, 2019

Description

This knowledge base explains how to resolve the TypeError: n(…).valid is not a function in Spreadsheet.

Solution

TypeError: n(…).valid is not a function” script error is raised, if the jQuery validation script is not referred in your application. The JQuery validation script is used to support validation in Spreadsheet, while editing the cell (data-validation) and dialog inputs.

 

 [JS]

 

<!--  jquery script  -->
<script src="http://code.jquery.com/jquery-3.2.1.min.js"></script>
<!--  validation script  -->
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.19.0/jquery.validate.min.js"></script>
 
<!--  jsrender script  -->
<script src="http://cdn.syncfusion.com/js/assets/external/jsrender.min.js"></script>
 
<!-- Essential JS UI widget -->
<script src="http://cdn.syncfusion.com/16.4.0.52/js/web/ej.web.all.min.js"></script>
 
<!--Add custom scripts here -->
 

 

[RAZOR]

 

<!--  jquery script  -->
@Scripts.Render("http://code.jquery.com/jquery-3.2.1.min.js")
<!--  validation script  -->
@Scripts.Render("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.19.0/jquery.validate.min.js")
 
<!--  jsrender script  -->
@Scripts.Render("http://cdn.syncfusion.com/js/assets/external/jsrender.min.js")
 
<!-- Essential JS UI widget -->
@Scripts.Render("http://cdn.syncfusion.com/16.4.0.52/js/web/ej.web.all.min.js")
 
<!--Add custom scripts here -->
 

 

[ASPX]

 

<!--  jquery script  -->
 
<%: Scripts.Render("http://code.jquery.com/jquery-3.2.1.min.js")%>
<!--  validation script  -->
<%: Scripts.Render("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.19.0/jquery.validate.min.js")%>
 
<!--  jsrender script  -->
<%: Scripts.Render("http://cdn.syncfusion.com/js/assets/external/jsrender.min.js")%>
 
<!-- Essential JS UI widget -->
<%: Scripts.Render("http://cdn.syncfusion.com/16.4.0.52/js/web/ej.web.all.min.js")%>
 
<!--Add custom scripts here -->
 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon

Live Chat Icon For mobile