I'm using a columnchooser-control added to a form to implement a custom approach to choose the visible columns. Since the fields from the underlying datasource shouldn't be shown to the users, ColumnChooserCaption is set for each column to made the captions more readable to regular users. This works fine, but the sorting order of the columnchooser-control (set to ColumnDisplayOrder.Alphabetical) seems to apply to the underlying datasource-column names and not the ColumnChooserCaption, by that puzzling the sort order :-( .
What am I doing wrong?
Thanks for any help or hint!
Greetings from germany
That sounds like a bug to me. Are you using the latest Hot Fix? It might already be fixed.
If that does not help, you should Submit an incident to Infragistics Developer Support
thank you for your answer! I forwarded it as an incident and one of your collegues is managing it.. (Although I think we're having a different understanding wheter this would be / is a bug or a new functionality ;-))
I think there is some confusion here.
The ColumnChooser already has the abillity to sort the columns alphabetically via the ColumnDisplayOrder property.
My understanding is that you are saying that the sorting is being done by the Key of the column, rather than by the text displayed to the user. If that's true, it makes no sense - it should be sorting by the text displayed to the user.
I have forwarded this thread over to developer support so they can look into it and get this fixed.
I just heard back from Developer Support and they reviewed your case. Apparantly, this was looked at and it was determined that the ColumnDisplayOrder property is working correctly and that it sorts the columns alphabetically by the header caption and not the key.
So if you are still experiencing a problem with this, you may need to update to the latest service release.
If that does not help, we will need a small sample project demonstrating that the columns are sorted by key and not by text so that we can investigate further.
indeed, sorting takes the header caption and not the key. But that's where the problem is:
My understanding of sorting the columns in the chooser is, that they are arranged in the chooser by the caption you see in the chooser and not the caption you have as columnHeader captions, if they differ! And yes there is a ColumnChooserCaption which can be set to a different value, thereby puzzling the visible (in the chooser!) order.
If you choose 'mph' for a columnheaderCaption (because it's wideness fits better to the columns content!), but use 'Speed' for the ColumnChooserCaption, the entry 'Speed' is placed at 'm'! Not really a visible sorting!
I hope I made my point clearer by that!?
Greetings from Germany
I have to agree with Volker... on all my grids i change the ChooserCaption so it is more intuitive... thus the Field Chooser box should sort by the Chooser Caption and not the Header.
Even more... i would like to see it as a option is how we sort... A_to_Z by ChooserCaption, Z_to_A by ChooserCaption, A_to_Z by Header... etc., etc.
The sorting should be based on the visible text that the user can see. Anything else would not make sense to the user. So this is almost certainly a bug.
I have alerted Infragistics Developer Support so they can re-open this issue and get it fixed.