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

Error in Filter in MultiColumnComboBox

6 Answers 114 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
mohammad
Top achievements
Rank 1
mohammad asked on 18 Mar 2013, 07:00 PM
When I use the tree as MultiColumnComboBox
 The table has a relation with itself
When I click on MultiColumnComboBox the popup
  The following error occurs


radMultiColumnComboBox1.MultiColumnComboBoxElement.EditorControl.Relations.AddSelfReference(this.radMultiColumnComboBox1.MultiColumnComboBoxElement.EditorControl.MasterTemplate, "id", "parentid");
            sqlDataAdapter1.Fill(dataSet11);
            radMultiColumnComboBox1.DataSource = t1BindingSource;
            radMultiColumnComboBox1.DisplayMember = "name";
            radMultiColumnComboBox1.ValueMember = "id";
 
 
 
 
            this.radMultiColumnComboBox1.AutoFilter = true;
            this.radMultiColumnComboBox1.DisplayMember = "name";
            FilterDescriptor filter = new FilterDescriptor();
            filter.PropertyName = this.radMultiColumnComboBox1.DisplayMember;
            filter.Operator = FilterOperator.Contains;
            this.radMultiColumnComboBox1.EditorControl.MasterTemplate.FilterDescriptors.Add(filter);
sql create table
relation in id and parentid
CREATE TABLE [dbo].[T1](
    [id] [int] NOT NULL,
    [name] [nvarchar](50) COLLATE Arabic_CI_AS NULL,
    [parentid] [int] NULL,
 CONSTRAINT [PK_T1] PRIMARY KEY CLUSTERED
(
    [id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
 
GO
ALTER TABLE [dbo].[T1]  WITH CHECK ADD  CONSTRAINT [FK_T1_T1] FOREIGN KEY([parentid])
REFERENCES [dbo].[T1] ([id])
GO
ALTER TABLE [dbo].[T1] CHECK CONSTRAINT [FK_T1_T1]

6 Answers, 1 is accepted

Sort by
0
mohammad
Top achievements
Rank 1
answered on 25 Mar 2013, 03:46 AM
Why can not I view the second post
0
Svett
Telerik team
answered on 27 Mar 2013, 01:31 PM
Hi Mohammad,

Before addressing your latest questions, please provide us with the information request in thread "I want when I click popup not closed", which can be found in your Telerik account.

Regards,
Svett
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
0
Daniel
Top achievements
Rank 2
answered on 03 Oct 2013, 10:40 AM
Hi Svett, i have the same error when i upgrade our radcontrol winform 2011 to 2013. All multicolumncombobox with Self Reference has error.

Thanks in advance.
comboBox.AutoFilter = true;
 
FilterDescriptor filter = new FilterDescriptor();
filter.PropertyName = comboBox.DisplayMember;
filter.Operator = FilterOperator.Contains;
comboBox.EditorControl.MasterTemplate.FilterDescriptors.Add(filter);
 
comboBox.EditorControl.MasterTemplate.Columns["EquipStructNodeID"].IsVisible = false;
comboBox.EditorControl.MasterTemplate.Columns["Display"].IsVisible = false;
comboBox.EditorControl.MasterTemplate.Columns["ParentEquipStructNodeID"].IsVisible = false;
 
if (comboBox.EditorControl.RowCount > 0)
{
      comboBox.EditorControl.Relations.AddSelfReference(comboBox.EditorControl.MasterTemplate, "EquipStructNodeID", "ParentEquipStructNodeID");
      comboBox.EditorControl.TableElement.ShowSelfReferenceLines = true;
      comboBox.EditorControl.MasterTemplate.ExpandAll();
}
0
George
Telerik team
answered on 08 Oct 2013, 10:07 AM
Hello Daniel,

Thank you for contacting us.

I was able to reproduce the issue you are describing. I appears to exist only when the RadMultiColumnComboBox's EditorControl is in SelfReferenceMode. I have logged it in our Public Issue Tracking System. You can find it on the following URL - http://www.telerik.com/support/pits.aspx#/public/winforms/15899. Unfortunately I cannot provide you with a workaround due to the nature of the issue.

I have updated your Telerik Points for your report.

Let me know if I can be of further assistance.

Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Joem
Top achievements
Rank 2
answered on 25 Aug 2015, 05:18 AM
Is there a solution to this now? I am using 2015 Q2
0
Stefan
Telerik team
answered on 25 Aug 2015, 11:08 AM
Hello ,

This issue does not seem to be fixed yet. Here is the new issue page, where you can add your vote/comment and subscribe for status change alerts: http://feedback.telerik.com/Project/154/Feedback/Details/111689-fix-radmulticolumncombobox-autofilter-not-working-in-self-reference-mode

I hope that you find this information useful.

Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
MultiColumn ComboBox
Asked by
mohammad
Top achievements
Rank 1
Answers by
mohammad
Top achievements
Rank 1
Svett
Telerik team
Daniel
Top achievements
Rank 2
George
Telerik team
Joem
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or