How to remove the text Telerik.WinControls...

5 posts, 0 answers
  1. Charles
    Charles avatar
    9 posts
    Member since:
    Jun 2012

    Posted 29 Aug 2011 Link to this post

    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.
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 01 Sep 2011 Link to this post

    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 >>

  3. UI for WinForms is Visual Studio 2017 Ready
  4. David
    David avatar
    2 posts
    Member since:
    Jan 2012

    Posted 17 Apr 2012 Link to this post

    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
  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 20 Apr 2012 Link to this post

    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 >>
  6. David
    David avatar
    2 posts
    Member since:
    Jan 2012

    Posted 20 Apr 2012 Link to this post

    Thanks
Back to Top
UI for WinForms is Visual Studio 2017 Ready