This is used typically (but not only) for sorting the column (typically with indexes built on-the-fly for a view cursor).
thanks,
Hank
Printable View
This is used typically (but not only) for sorting the column (typically with indexes built on-the-fly for a view cursor).
thanks,
Hank
Noted. I thought that was in. Will investigate.
I believe that a grid has a sortable property that will sort automatically for you. I will investigate.
Hi,
I am tyring to set sort my grid by clicking on the column header. How is the best way to accomplish that?
Thanks.
Herb
Let me look at our code and get back to you. Maybe we can simplify this with an attribute.
I'm curious as to the status of this feature. It does not appear that we are currently able to sort a grid by clicking a column header.
Hi Cory,
There was no ER ticket raised for this. Thats the list of "Things to do" that we work off. We can't read all the forum posts. Once a feature/issue is discussed on the forums the SOP is to raise a ticket.
Hi,
Not sure if someone already did this, but I created a ticket for grid header click event.
Herb
I Created it last night in case no one else had.
Thank you Herb.
Hi Herb,
I've been looking into this. Grids are "Sortable" either ascending or descending (there is an indicator in the column header). There is an internal property called "Sortable" for this. The problem is if the grid is a child of another section.
If all you need is a "HeaderClick" delegate I can expose that but there are two ways this works; ascending or descending.
Maybe I can pass a column number to the delegate which is -ve e.g. -2 to sort a column in descending order and +ve to sort it in ascending order.
It would probably be better if this was just handled inside the grid component itself (as it currently is as it creates indexes on the fly). Looking at the code it would need to create the indexes prefixed with the "key expression" i.e. the child key so that as you navigate parent sections the data is refreshed in the correct order.
Is that what you are after.
Yes.
I think that having an indicator in the column header (up/down arrow) would visually allow the user to see which header the column is being sorted on and whether it is ascending or descending.
Herb