Author Topic: Grid appearance  (Read 1735 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Grid appearance
« on: November 09, 2017, 08:02:00 pm »
How do you control the visual appearance in the grid?
Ex: When you manually click to sort a column the title cell change color. Can this be controlled by settings etc?
« Last Edit: November 09, 2017, 08:03:56 pm by queensgambit9 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: Grid appearance
« Reply #1 on: November 09, 2017, 10:41:42 pm »
There are lot of examples on how to control the appearance of grid body cells and rows ( conditional and non conditional ) by column.render, rowInit, pq_cellattr, pq_rowattr, pq_cellcls, etc.

For header title cells, it can be done only by adding a css class in column or by implementing column.title as a callback.

For example grid title cell appearance can be changed for filtered columns:

https://paramquery.com/forum/index.php?topic=2400.0

For sorting the logic would be similar to above except you use sort event and use ui.sorter inside the event to get information about sorted columns.
« Last Edit: November 09, 2017, 10:43:56 pm by paramquery »

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: Grid appearance
« Reply #2 on: November 10, 2017, 01:53:43 am »
Thanks, my post also though :).
I was more after how jQuery Theme behaviour can be controlled I guess...like when you click on sort I would like to control how it behaves.
« Last Edit: November 10, 2017, 02:15:01 am by queensgambit9 »