Author Topic: Checkbox in the treeGrid  (Read 2081 times)

resolvecomputing

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 40
    • View Profile
Checkbox in the treeGrid
« on: December 04, 2017, 10:05:46 am »
Dear team,

When i working with paramQuery i have some issue about treeModel. When i setting treeModel like this

treeModel: {
dataIndx: 'columnName',
chk_dataIndx: 'state',
cascade: true,
checkbox: true,
},

1. How can i setting some checkbox in the tree checked when i render paramquery treegrid
2. How can i push value for input checkbox look like?
<input type="checkbox" data-value="82" style="width:18px;">?
3. How can i setting checkbox disabled?
In the 3 issue i just ask for checkbox in the treeGrid not separate checkbox column.

Thank you very much!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Checkbox in the treeGrid
« Reply #1 on: December 04, 2017, 12:00:24 pm »
1. predefined values can be stored in data. The fieldname is pq_tree_cb (default ) or alternative field can be defined in treeModel.cbId

2. Checkbox rendering and data binding is controlled by grid. Custom rendering of checkboxes not supported in treegrid except for disabled checkboxes.

3. Disabled checkboxes can be rendered in treeModel.render callback. It works only when treeModel.cascade is false.

Example jsfiddle: http://jsfiddle.net/e27ponet/2/
« Last Edit: December 04, 2017, 02:40:26 pm by paramquery »

resolvecomputing

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: Checkbox in the treeGrid
« Reply #2 on: December 05, 2017, 07:42:09 am »
I solved my issue. Thank you very much!