View previous topic :: View next topic |
Author |
Message |
EntityDev
Joined: 07 Apr 2016 Posts: 40
|
Posted: Sat Apr 23, 2016 11:37 pm Post subject: Sorting with Programmatic Binding |
|
|
With support's help, I am able to set up the tree so that it displays data in something other than a strictly hierarchical fashion. This requires that I handle the tree's GetChildren event.
A read of the documentation makes it clear that I can handle sorting programmtically as well. What is not so clear is whether or not I must handle sorting programmatically, when the GetChildren event is handled. My experimentation seems to suggest that the answer is yes.
So, to be clear: If I so much as stub out the GetChildren event handler, is the ITypedList-provided sorting permanently disabled? Or, is it supposed to work, provided that the developer get the tricky business of programmatic databinding working just so?
Thanks once again. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Apr 25, 2016 9:03 am Post subject: |
|
|
If you are handling the GetChildren event then you will also need to handle the sorting. This means your GetChildren handler will need to check the current SortColumn of the tree and sort the collection returned by the GetChildren event accordingly. _________________ Infralution Support |
|
Back to top |
|
|
EntityDev
Joined: 07 Apr 2016 Posts: 40
|
Posted: Mon Apr 25, 2016 11:20 am Post subject: |
|
|
Duly noted. Thank you once again. |
|
Back to top |
|
|
|