Author Topic: CheckboxSelection is disabled  (Read 2016 times)

vinay.narasapurapu

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 7
    • View Profile
CheckboxSelection is disabled
« on: September 04, 2020, 11:05:15 pm »
Hi

I am rendering the checkbox column as below in react, but the checkboxes are getting disabled. I have downloaded the latest version

  if (this.props.IsChkboxColReqd) {
      columnObj = {
        title: "", dataIndx: "", maxWidth: 30, minWidth: 30, align: "center",dataType: "bool",
        cb: { header: true, all: false,select:true },
        type: 'checkBoxSelection', cls: 'ui-state-default', resizable: false, sortable: false, editable: false
       
      };
      colM.push(columnObj);
    }
attached the image
« Last Edit: September 04, 2020, 11:22:36 pm by vinay.narasapurapu »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: CheckboxSelection is disabled
« Reply #1 on: September 04, 2020, 11:13:56 pm »
It's because of editable: false property in the column.

vinay.narasapurapu

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: CheckboxSelection is disabled
« Reply #2 on: September 04, 2020, 11:19:55 pm »
I tried removing that property and it is coming as in screenshot which is coming as editable

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: CheckboxSelection is disabled
« Reply #3 on: September 04, 2020, 11:23:48 pm »
Please add editor: false to the column

Example of checkbox column: https://paramquery.com/pro/demos/checkbox