Author Topic: how to set minHeight or maxHeight in pqgrid  (Read 122 times)

miside

  • Newbie
  • *
  • Posts: 3
    • View Profile
how to set minHeight or maxHeight in pqgrid
« on: November 02, 2018, 12:54:54 pm »
like
$("#pqGrid").pqGrid({minHeight:200,maxHeight:400});
so when I set minHeight and maxHeight, pqGrid's height between 200px and 400px

paramquery

  • Administrator
  • Hero Member
  • *****
  • Posts: 3643
    • View Profile
Re: how to set minHeight or maxHeight in pqgrid
« Reply #1 on: November 03, 2018, 11:22:53 am »
That should be followed by refresh.

$( selector ).pqGrid('refresh');

miside

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: how to set minHeight or maxHeight in pqgrid
« Reply #2 on: November 03, 2018, 11:38:44 am »
sorry,because I use free version ,I check that the API doesn't have this property,so how do I implement this

paramquery

  • Administrator
  • Hero Member
  • *****
  • Posts: 3643
    • View Profile
Re: how to set minHeight or maxHeight in pqgrid
« Reply #3 on: November 05, 2018, 11:38:54 pm »
You are right. Those are not present in the free grid API, sorry my previous answer was based on the assumption of presence of minHeight and maxHeight API.

miside

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: how to set minHeight or maxHeight in pqgrid
« Reply #4 on: November 09, 2018, 12:45:43 pm »
Thank you for your reply
I hava other question, When I click on the other columns in the row , can I select checkbox or unselect checkbox,and select/unselect current row.
I try to do this,then it can select row when I click current row:
cellClick:function(event,ui){
   var checkBoxCell = $( ".selector" ).pqGrid( "getCell", { rowIndx: ui.rowIndx, dataIndx: "checkBox" } );
   if(!ui.rowData.checkBox){
       $(checkBoxCell[0].children).trigger("click");
   }
}
but when I click on the current row, I want to unselect the previous row.
Hope you can help me, thanks a lot.