Articles in this section
Category / Section

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

1 min read

Description

This knowledge base explains how to resolve the TypeError: n(…).valid is not a function in JavaScript 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 JavaScript 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 -->
 

Conclusion
I hope you enjoyed learning how to resolve the TypeError n(…).valid is not a function in Spreadsheet.
You can refer to our JavaScript Spreadsheet feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our JavaScript Spreadsheet example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!




Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied