ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: queensgambit9 on November 09, 2017, 08:02:00 pm

Title: Grid appearance
Post by: queensgambit9 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?
Title: Re: Grid appearance
Post by: paramvir 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.
Title: Re: Grid appearance
Post by: queensgambit9 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.