Let's say I have a jquery grid (plugin).
Of course, he has the ability to get data from an ajax source or from another source (client source).
Now let's say that when the page loads, I have to display the initial data (well, not so much data, because I have a pager, but from the second page, etc. the request is called as ajax result)
HOW should I bind the source data (POV design)
I have:
- In - ASP.net/PHP (on server code) register a boot script client that will run after the page loads (this script will retrieve data using ajax)
(minus: it really will make 1 more request to the server (for data))
What is the right way to do this?
ps I do not want to put the binding in document.ready , because I believe that it is better to bind data much earlier.
source share