Hi,
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
Volker
Hi Volker,
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
Hi Mike,
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 ;-))
Kind regards
I am still on NetAdvantage 2008 Vol1... i want to upgrade but wondering if this item is resolved in one of your newer packages?
item FR11084... i need the columns to sort correctly as well.
Thanks,Dave
Hi Dave ('n Mike, too),
after first submitting it as a bug, I got the following answer:
"Hello Volker,
Thank you for submitting your query with Infragistics Developer Support
I would like to inform you that the functionality you are looking for is intrinsically not supported in this control.
After searching our database, I have found a similar feature request # FR03863 which is related to "Have the column chooser display columns in alphabetical order instead of visible position"."
I insisted on that topic and so other staff members joined in and they finally changed it all to a feature request. Last words I read were (09/02/25):
"Thank you for contacting me. The feature you are asking for does make sense and is a good one. I have escalated FR11084 to our product management team for you.
I will let you know their assessment of this when they have reviewed it."
That's my current info on that. I changed my ColumnChooserCaptions in between, so that I did "manually order by renaming" ;-) . Not a good solution at all, but saved my nerves and released me from struggling about 'what is a feature and what a bug'....
Wish you good luck and good times
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.
Example:
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
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.
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.
capdev