Author Topic: How to add cell comments when use render  (Read 3155 times)

noctrona

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 82
    • View Profile
How to add cell comments when use render
« on: April 27, 2015, 05:23:06 pm »
Hi team,

I just check our pro demo found we can add comments for each cell. But I have a column used "render" to generate the cell contents. So is that possible add comments for this?

Code: [Select]
{ title: "Line Item Status", width: 64,align: "center",editable: false,dataIndx: "status", render: goPR }
"goPR" is one js method.


Thank you!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to add cell comments when use render
« Reply #1 on: April 27, 2015, 06:04:38 pm »
Hello noctrona

Yes you can still add comments to the cell.

commentRender is only used to show a small comments icon in the cell which acts as an indicator that the cell has comments, it's not mandatory for comments functionality.

noctrona

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 82
    • View Profile
Re: How to add cell comments when use render
« Reply #2 on: April 27, 2015, 07:32:58 pm »
Hello noctrona

Yes you can still add comments to the cell.

commentRender is only used to show a small comments icon in the cell which acts as an indicator that the cell has comments, it's not mandatory for comments functionality.

My paramquery version is "2.1.0". Is this version support "pq_cellattr"? I try it but can't see the commends logo on my cell.

And it looks the "attr" is conflict with my jquery...
« Last Edit: April 27, 2015, 08:05:53 pm by noctrona »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to add cell comments when use render
« Reply #3 on: April 27, 2015, 08:43:05 pm »
Comments functionality is dependent upon attr method which is available since 2.3.0.

attr use in previous versions would throw an error.