Error in Filter in MultiColumnComboBox

7 posts, 0 answers
  1. mohammad
    mohammad avatar
    10 posts
    Member since:
    Mar 2009

    Posted 18 Mar 2013 Link to this post

    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]
  2. mohammad
    mohammad avatar
    10 posts
    Member since:
    Mar 2009

    Posted 24 Mar 2013 Link to this post

    Why can not I view the second post
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Svett
    Admin
    Svett avatar
    728 posts

    Posted 27 Mar 2013 Link to this post

    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.
  5. Daniel
    Daniel avatar
    17 posts
    Member since:
    Oct 2013

    Posted 03 Oct 2013 Link to this post

    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();
    }
  6. George
    Admin
    George avatar
    500 posts

    Posted 08 Oct 2013 Link to this post

    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 >>
  7. Joem
    Joem avatar
    11 posts
    Member since:
    Oct 2012

    Posted 25 Aug 2015 in reply to George Link to this post

    Is there a solution to this now? I am using 2015 Q2
  8. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 25 Aug 2015 Link to this post

    Hello Joem,

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready