Author Topic: Filter and Row Selection  (Read 1600 times)

scotth

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 6
    • View Profile
Filter and Row Selection
« 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

scotth

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Filter and Row Selection
« Reply #1 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