Author Topic: How do I disable the Master/child indicator, if the child datasource is empty ?  (Read 2986 times)

iamgsprabhu

  • Newbie
  • *
  • Posts: 21
    • View Profile
I am working with the nested grids, and I would like to hide/disable the detail grid and indicator (ui-icon-plus) when the child datasource returns empty.

How can I acheive this ?

thanks
Prabhu

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
I'm afraid it's not feasible in version 2.0.4

iamgsprabhu

  • Newbie
  • *
  • Posts: 21
    • View Profile
Atleast is there a way to disable the indicator (+) ?

I'm afraid it's not feasible in version 2.0.4

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
It's not a nice solution but if you could loop through the rows ( $tr ) in grid with jQuery in refresh event, you could disable the unwanted + icons by directly setting display: 'none' or visibility: hidden.

rowData can be obtained from $tr by getRowData() and getRowIndx() methods and you could mark the rows with unwanted + by adding some property to rowData.