Document.ready and asp.net methods

I am currently using kendo UI and ASP.NET 4.0 (non-mvc) for a project, on my project each page will have a grid that will be populated with ajax call to the page method on that particular page.

The problem is that I can’t think of a way not to call all the grid fill functions on document.ready, except for creating a separate js file for each page. Is there a way that I could have 1 page, but be able to distinguish which one is loading and call the correct way to populate the table in 1 file so that this does not become a maintenance nightmare?

+4
source share
1 answer

Do all meshes look the same? I mean, the same number of columns, same names, same ... just change the data? If so, I recommend having one page, one grid and playing with a DataSource .

You will need the transport.read and transport.read.data functions, which allows you to call one or more servlets to process the request and send different data to retrieve certain grid data.

+2
source

All Articles