Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Expose Click event for Header in Grid

  1. #11
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658
    Thank you Herb.

  2. #12
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,147
    Blog Entries
    22
    Quote Originally Posted by hmischel@diligentsystems.com View Post
    I Created it last night in case no one else had.
    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.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #13
    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

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us