populate - jqGrid: new data property in 3.7 -- is there a setData method? -


My app populates a jqGrid, repeatedly with the result of many different questions by the user; Take the form of questions: Write documents, documents, hits, documents, for all documents, where the word contains the word 'x'. The user can create many such (AJAX) questions after each other: Problem query. Read the list of titles given by the database. do some work. Create any such other query and so on and so on.

Once I create a grid, and when Ajax database call returns with some data, the grid is deprived for the first time and then it is recapitalized like this:

< Pre> $ ("# titles-table"). JqGrid ('clearGridData'); . . . // var / = ... $ ("# titles-table") through the data received by the AJAX database call // Loop. JqGrid ('addRowData', i, line);}

But now with version 3.7, the grid has a new 'data' property which is named addRowData Is faster than>. In the example, this new data property shows that the grid is being populated because it is being done immediately (as colmodel is defined, etc.). Assuming the grid already exists and clean grid data to set the grid's data property to revive a grid Is there a way to reprint the grid? To clean grid data, something like:

  $ (# titles-table) .Jack grid ('set gridata', data);  

I am interested in a fast way to populate the grid. I message when there are 75 rows in my grid, but chrome and opera and safari are reflected through this data The amount of instantly According to

, this option can be changed via the grid setGridParam

>. For example:

  $ (# titles-table) .jqGrid ('setGridParam', data);  

Comments