Text Property Bug

4 posts, 0 answers
  1. Tim DiPaula
    Tim DiPaula avatar
    16 posts
    Member since:
    Jul 2009

    Posted 13 Nov 2009 Link to this post

    I am experiencing the follow problem with the MultiColumn ComboBox control.
    First I setup the MultiColumn ComboBox as follows:

     
    CategoryRadMultiColumnComboBox.DataSource = _categoriesBindingSource; 
    CategoryRadMultiColumnComboBox.DisplayMember = "CategoryName"
    CategoryRadMultiColumnComboBox.ValueMember = "CategoryId"
    CategoryRadMultiColumnComboBox.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList; 
     
    RadMultiColumnComboBoxElement categoriesElement = CategoryRadMultiColumnComboBox.MultiColumnComboBoxElement;          
    categoriesElement.EditorControl.MasterGridViewTemplate.AutoGenerateColumns = false;       
    categoriesElement.EditorControl.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;           
    categoriesElement.EditorControl.MasterGridViewTemplate.Columns.Clear(); 
    categoriesElement.Columns.Add(CreateGridViewDataColumn("StandardId")); 
    categoriesElement.Columns.Add(CreateGridViewDataColumn("CategoryId")); 
    categoriesElement.Columns.Add(CreateGridViewTextBoxColumn("#""CategoryNumber", 30, 30)); 
    categoriesElement.Columns.Add(CreateGridViewTextBoxColumn("Name""CategoryName", 100)); 

    On the SelectedIndexChange event of another ComboBox I set the filter for the datasource as follows:

    private void StandardRadMultiColumnComboBox_SelectedIndexChanged(object sender, EventArgs e) 
                RadMultiColumnComboBox cbo = (RadMultiColumnComboBox)sender; 
                _categoriesBindingSource.Filter = String.Format("StandardId = '{0}'", cbo.SelectedValue.ToString()); 
                 
                RadMultiColumnComboBoxElement categoriesElement = CategoryRadMultiColumnComboBox.MultiColumnComboBoxElement; 
                 
                if (categoriesElement.Rows != null && categoriesElement.Rows.Count == 0 && CategoryRadMultiColumnComboBox.SelectedItem != null
                { 
                    CategoryRadMultiColumnComboBox.SelectedItem = null
                    CategoryRadMultiColumnComboBox.SelectedValue = null
                    CategoryRadMultiColumnComboBox.Text = " "
                }             

    Now when the filtering results in 0 rows in the DataSource the Text property retains the previous value and I can not seem to clear it not matter what properties I change.
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 19 Nov 2009 Link to this post

    Hello Tim,

    Thanks for contacting us and for your interest in RadControls for WinForms.

    I have researched the case and was able to reproduce it. We have logged this issue in your TODO system and will try to fix it for the upcoming Q3 2009 SP1 release.

    I also updated your Telerik points for bringing our attention to this issue.

    Thanks for your time.

    Greetings,
    Deyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jason Parrish
    Jason Parrish avatar
    87 posts
    Member since:
    Sep 2009

    Posted 09 Mar 2011 Link to this post

    Was this ever fixed?

    I have the latest version, and I still experience the issue.  The text will change to the text of the first cell after the DropDown closes.

  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 16 Mar 2011 Link to this post

    Hi Jason Parrish,

    Yes, we believe that the described issue is addressed. Could you please describe in detail the behavior that you expect and send us a small sample application? This will help us understand the issue and provide you with accurate support.

    I am looking forward to your reply.

    Greetings,
    Jack
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top