ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: tiberiuspv on June 10, 2015, 01:00:06 am

Title: Tip: Entering batch editing mode
Post by: tiberiuspv on June 10, 2015, 01:00:06 am
I had some trouble making my grid enter batch editing mode.
You need to provide the trackModel property and the recIndx property in dataModel. So something like:

    $( ".selector" ).pqGrid( {
        dataModel:{ recIndx: "id", . . . },
        trackModel : { on: true },
        . . .
    } );

where id is the row master key.

This is mentioned in the doc under trackModel, but is easy to overlook (at least it was easy for me to overlook  :) ).
Once you do that, it works like a charm...