Author Topic: Add html attributes to row - how?  (Read 2653 times)

nightrider

  • Newbie
  • *
  • Posts: 4
    • View Profile
Add html attributes to row - how?
« on: November 23, 2016, 02:44:59 am »
Hello.

I'm using server-side processing for getting row data. What should I return from server to assign id attribute or class to each row?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Add html attributes to row - how?
« Reply #1 on: November 24, 2016, 08:29:17 pm »
Classes can be added to rows with pq_rowcls property in JSON data.

http://paramquery.com/demos/row_styles

nightrider

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Add html attributes to row - how?
« Reply #2 on: December 16, 2016, 03:29:37 pm »
Thank you.

I have another issue with checkbox column. There is no "global" checkbox in column's header, unless I resize any column or click on refresh button.
I've searched the code, _pCheckBC.refreshHeader is responsible for this checkbox, but is only executes on the actions I mentioned above.
Why?