ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: scotth on June 02, 2017, 02:39:14 am

Title: Filter and Row Selection
Post by: scotth on June 02, 2017, 02:39:14 am
Hello,

I am combining many features into one gridview, and the only way I know of to implement row selections breaks the filters. In the attached code, the filters work when lines 372-375 are commented (at the very bottom):


    var $grid = $("#grid_row_selection").pqGrid(obj);
    $grid.pqGrid("option", "hoverMode", "row");
    $grid.pqGrid("option", "selectionModel.type", "row");
    $grid.pqGrid("option", "selectionModel.mode", "block");

However, commenting those lines breaks the hovermode and selection capabilities. Uncommenting those lines gives me the hovermode and selection capabilities, but breaks the column filters.

With the attached document, can I have the hovermode, selection capabilities, and filters at the same time?
Is there a way to set the hovermode, selectionmodel.type, and selectionmodel.mode using the grid definition  grid = pq.grid("#grid_filter", obj);?

Thank you
Title: Re: Filter and Row Selection
Post by: scotth on June 02, 2017, 02:48:42 am
Hello,

I got it. The solution is to define the JSON properties in the obj variable.

Thank you