I see some examples of a commercial application for supporting MVC (asp.net) using jqGrid, and I'm trying to determine the best approach when using jQgrid with the client side of Backbone.js mvc.
We are currently using the Backbone view, which contains a jqgrid tone with smaller tables and a "local" data type that is provided by the core network.
To support paging and a virtual screenshot, I would like to have support for basic / collective support of the database from the server and any search / filter options and send the output for viewing and jqgrid to update the grid.
It seems that jqGrid has some event hooks, such as beforeRequest, loadBeforeSend, which I can hook and execute a collection call to execute an ajax request and return json and update the collection (using the Addy Backbone Paginator collection), but it seems jqgrid anyway will make an ajax call that seems wrong to have an idea in control instead of a model.
If I use my own data type, I could catch a condition where the grid needs to get more data and have a bb collection function that works for fetching data.
Is a custom data type the best option, is there a better way to connect a trunk model / collection to jqgrid?
claya source
share