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

Text Property Bug

3 Answers 65 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Tim DiPaula
Top achievements
Rank 1
Tim DiPaula asked on 13 Nov 2009, 04:00 PM
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.

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 19 Nov 2009, 10:15 AM
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.
0
Jason Parrish
Top achievements
Rank 1
answered on 09 Mar 2011, 06:34 PM
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.

0
Jack
Telerik team
answered on 16 Mar 2011, 05:41 PM
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!
Tags
MultiColumn ComboBox
Asked by
Tim DiPaula
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Jason Parrish
Top achievements
Rank 1
Jack
Telerik team
Share this question
or