Author Topic: Can I insert a indent without a top of grouping name ?  (Read 2222 times)

Hidehiro Ishii

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 44
    • View Profile
Can I insert a indent without a top of grouping name ?
« on: December 11, 2017, 11:30:02 am »
Hi Team,

Can I insert a indent without a top of grouping name like as an attached files ?

Regards,
Koichi

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: Can I insert a indent without a top of grouping name ?
« Reply #1 on: December 11, 2017, 11:25:09 pm »
Add this to grid initialization object.

Code: [Select]
columnTemplate: {
render: function(ui){
if( !ui.rowData.pq_gtitle && ui.colIndx < this.option('groupModel.dataIndx').length ){
return "<p style='text-indent:20px;'>"+ui.cellData+"</p>";
}
}
},
« Last Edit: December 11, 2017, 11:27:59 pm by paramquery »

Hidehiro Ishii

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Can I insert a indent without a top of grouping name ?
« Reply #2 on: December 12, 2017, 07:57:48 am »
Hi Team,

Thank you for your quick response.
I have tried your code and it works good!
Please close this case.

Regards,
Koichi