This is a migrated thread and some comments may be shown as answers.

How to hide the Display Member column

3 Answers 346 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Cameron Hart
Top achievements
Rank 1
Cameron Hart asked on 08 Jul 2009, 03:45 AM
Hey guys,

I'm using the MultiColumn ComboBox to select an item for editing. The ComboBox ties into a DataTable. That DataTable has the following columns of interest:

1. An integer column, "id", the primary key.
2. A string column, "code"
3. A string column, "description"
4. A string column, "display"

There are other columns, but they're not important.

The "display" column is calcualted by a SQL statement before it gets to the table - the Column itself doesn't understand that it is an expression column.

I want the "display" column to be the DisplayMember. But I do not want that column to be visible when I use the Drop-Down of the comboBox.

When I get the gridView inside the Drop-Down, and set the "display" column .IsVisible = false, the column goes away from the Drop-Down, but the DisplayMember no longer works. I get the "code" column, not the "display" column.

Is there a way to hide the column used by the DisplayMember? Or will I have to assign it manually every time a new row is selected in the Drop-Down?

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 09 Jul 2009, 02:28 PM
Hello Cameron Hart,

This is just how RadMultiColumnComboBox works. It searches for a cell to retrieve the value required for the DisplayMember which does not work in your case. This approach is wrong as it does not work in all cases. RadMultiColumnComboBox is scheduled for major re-factoring as it has not been updated for quite some time now. Please excuse us if this causes you an inconvenience.

Regards,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Cameron Hart
Top achievements
Rank 1
answered on 12 Jul 2009, 08:38 PM
That's alright Victor - it's not too terrible an inconvienience.

This is largely a cosmetic issue - the functionality in my application is fine, and I know I can update the text property manually on selection. It's another entry on my to-do list, but it isn't urgent.
0
Victor
Telerik team
answered on 14 Jul 2009, 04:31 PM
Hello Cameron Hart,

I have added this issue to our bug database and we will address it once we get to refactoring RadMultiColumnComboBox. Thank you for the feedback.

Regards,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
MultiColumn ComboBox
Asked by
Cameron Hart
Top achievements
Rank 1
Answers by
Victor
Telerik team
Cameron Hart
Top achievements
Rank 1
Share this question
or