tabalinas / jsgrid-webapi

Sample project for jsgrid with WebAPI remote source

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught TypeError: Cannot read property 'validate' of undefined

Itsathere opened this issue · comments

I am trying to validate some fields in jsgrid but after writing code snippet in column like below getting error
fields: [{ name: "ModelNumber", type: "text", width: 120, title: "Model#/Item", validate: function (value, item) { return value.length == 10; } }]

Uncaught TypeError: Cannot read property 'validate' of undefined

Solved it by adding js file

jsgrid.validation.js

thanks.

Glad that you figured it out.

I am still having problem in page loading with huge data.Can you help me for?

Do you have an issue regarding this problem?
In any case the best cure for huge data is to avoid loading all the data at once (e.g. using paging).

Yes. But how to manage data by loading per page. In previous problem.You have given the link for page loading but I am still not able to understand that issue.Please help me with suitable example or live example.

Checkout this answer tabalinas/jsgrid#134 (comment). This is what you have to do on the client side. On the server side just request only page of data, e.g. if you are using EF: http://stackoverflow.com/questions/1049825/paging-in-entity-framework