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

How to remove the text Telerik.WinControls...

4 Answers 196 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 30 Aug 2011, 03:25 AM
The MultiColumn Combobox will display "Telerik.WinControl.." if  the value of Display Member is null or empty. That's wrong.

Please see 1.jpg.

It should be display a empty string.

Please help me!

Thanks.

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 01 Sep 2011, 04:18 PM
Hello Bang,

I am posting the same answer as I did in your support thread, in case someone from the community needs it.

This observed behavior is not wrong. This is how every databound controls works. In order to use the control correctly, please set its DisplayMember accordingly (to the name of the desired column to be displayed).

Kind regards,
Stefan
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
David
Top achievements
Rank 1
answered on 17 Apr 2012, 03:29 PM
It also happens to me in the radmulticolumncombobox (but not in raddropdownlist)

When the value of the displaymember's column (of selected item) is nothing it displays "Telerik.WinControl.."
I agree it should show empty string.

I don't understand the reply. Maybe you understood that displaymember "property" was nothing?

I'm binding with bindingsource using object model (entity framework 4.3)
Version of telerik wincontrols Q1 2012  version: 2012.1.321.40

If it is a bug, is there any workarround? maybe using some formating (I'm new to telerik and don't kow how)


Thanks
0
Stefan
Telerik team
answered on 20 Apr 2012, 02:43 PM
Hello David,

Thank you for writing.

What I meant in my previous reply is that it is normal to see the "Telerik.WinControls...." text when the
RadMultiColumnComboBox control is bound (to a DataTable for example) and its DisplayMember is not set accordingly. In this case, instead of the row values, you will see this text.

However, it seems that there is an issue, when the selected item is null. I am logging it in PITS and we will address it in a future release. Here is a link to the item, where you can vote for it and also subscribe for its status updates: http://www.telerik.com/support/pits.aspx#/public/winforms/10795.

Indeed, you are correct that Bang probably has the same issue. 

Meanwhile, what you can do to work around this issue is to remove the text manually when such case appear:
radMultiColumnComboBox1.MultiColumnComboBoxElement.TextBoxElement.TextBoxItem.TextChanged += new EventHandler(TextBoxElement_TextChanged);
...
void TextBoxElement_TextChanged(object sender, EventArgs e)
{
if (radMultiColumnComboBox1.Text == "Telerik.WinControls.UI.GridViewDataRowInfo")
 {
      radMultiColumnComboBox1.Text = "";
 }
}

I have updated your Telerik points for this report.

Should you have any other questions or suggestions, do not hesitate to contact us.

Regards,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
David
Top achievements
Rank 1
answered on 20 Apr 2012, 05:21 PM
Thanks
Tags
MultiColumn ComboBox
Asked by
Charles
Top achievements
Rank 1
Answers by
Stefan
Telerik team
David
Top achievements
Rank 1
Share this question
or