Author Topic: [pqgrid 9.0.1] check box column width problem  (Read 375 times)

unbinara

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 16
    • View Profile
[pqgrid 9.0.1] check box column width problem
« on: August 11, 2023, 06:57:39 am »
Hi ~ Everyone!
firstly, I am not good at english. so, please, understand it.

<question>
1. the column's width that is applied with checkbox does not work
    I applied column's width is 37 as <code> , the column is still 50

would anyone any advise?


<self try>
I try to solve this with css style like
[id$="0-right"] {width:37px !important; padding:0 0 !important;}

the width is solved however,
more trouble abut selected backgound color fisrt row and tenth row...

<pqgrid>
1. version : 9.0.1
2. use react and installed npm

<code>
this is first column

{ title:"",   width: 37,  dataType: 'bool',  dataIndx: "state",      align: "center",
   resizable: false, menuIcon: false, sortable: false, editor: false,
   type: 'checkBoxSelection', cls: 'ui-state-default',
   
   cb: {all: false, header: true}
},






paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: [pqgrid 9.0.1] check box column width problem
« Reply #1 on: August 11, 2023, 07:27:36 am »
This is not a bug, column width can't be set less than minimum width of column.

You need to change column.minWidth property whose default value is 50

https://paramquery.com/pro/api#option-column-minWidth

Please let me know if you need further assistance.
« Last Edit: August 11, 2023, 06:32:44 pm by paramvir »