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

AutoFilter Bug?

4 Answers 112 Views
This is a migrated thread and some comments may be shown as answers.
Cameron Hart
Top achievements
Rank 1
Cameron Hart asked on 26 Aug 2009, 10:58 PM
Hey guys,

Not sure if this is a bug or if I'm just doing something wrong.

I'm using a multiColumnComboBox with AutoFilter set to true.
  1. Open the drop-down box (optional, see 3)
  2. Type some text into the box.
  3. Open the drop-down box (optiona, either 1 or 3 is same)
  4. Select an entry with mouse or keyboard - same effect
  5. Try to type new text into the box.

After step 5, my box is looking up for each individual character I type, and selecting the first entry on each return..

After step 5, if I open the box first and then type, the box will select and close after I hit a single character. 

After step 5, if I hit the semicolon, no character will appear in the box - but the fiddly behaviour goes back to normal.

Not sure if this is to do with my code or not. Here's the section where I bind to the multiColumn:

        internal void FillDropDowns(bool bRefill) 
        { 
            string sSuburbText = this.mcboSuburb.Text; 
            // string sTownText = this.cboTown.Text; 
 
            if (bRefill) 
            { 
                this.LocationsSentTo.Clear(); 
                this.LocationsSentToTableAdapter.Fill(this.DataSet, "LocationsSentTo"); 
            } 
 
            this.mcboSuburb.DataSource = this.LocationsSentTo; // This is a wrapper property around the DataSet table referred to above. 
            this.mcboSuburb.DisplayMember = "postCode_prefix"
            this.mcboSuburb.ValueMember = "postCode"
 
            RadGridView gridView = this.mcboSuburb.MultiColumnComboBoxElement.EditorControl; 
 
            GridViewDataColumn prefixColumn = gridView.Columns["postCode_prefix"]; 
            prefixColumn.HeaderText = "Suburb"
            prefixColumn.Index = 0; 
            prefixColumn.BestFit(); 
 
            GridViewDataColumn postCodeColumn = gridView.Columns["postCode"]; 
            postCodeColumn.HeaderText = "PostCode"
            postCodeColumn.Index = 1; 
            postCodeColumn.BestFit(); 
 
            GridViewDataColumn sentToColumn = gridView.Columns["sentTo"]; 
            sentToColumn.HeaderText = "SentTo (D)"
            sentToColumn.Index = 2; 
            sentToColumn.IsVisible = Program.DebugMode; 
            sentToColumn.BestFit(); 
 
            GridViewDataColumn siteIdColumn = gridView.Columns["siteId_fk"]; 
            siteIdColumn.HeaderText = "Site ID (D)"
            siteIdColumn.Index = 3; 
            siteIdColumn.IsVisible = Program.DebugMode; 
            siteIdColumn.BestFit(); 
 
            if (this.mcboSuburb.EditorControl.MasterGridViewTemplate.FilterExpressions[this.mcboSuburb.DisplayMember] == null
            { 
                FilterExpression filter = new FilterExpression( 
                    this.mcboSuburb.DisplayMember, FilterExpression.BinaryOperation.AND, 
                    GridKnownFunction.Contains, GridFilterCellElement.ParameterName); 
 
                filter.Parameters.Add(GridFilterCellElement.ParameterName, true); 
 
                this.mcboSuburb.EditorControl.MasterGridViewTemplate.FilterExpressions.Add(filter); 
            } 
 
            this.mcboSuburb.SelectedItem = null
            this.mcboSuburb.Text = sSuburbText; 
        } 

Note that the FillDropDowns is not being called by any events while the typing or opening is taking place.

4 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 31 Aug 2009, 04:34 PM
Hi Cameron,

Thanks for writing and for reporting this issue. I managed to reproduce the case and indeed, this is an issue in the RadMultiColumnComboBox control. Unfortunately I was not able to find a workaround for you, however, we are going to investigate this further and provide a fix for our next major release. I have updated your Telerik points for bringing our attention to this issue, as well.

Do not hesitate to write back if you need further assistance.

Sincerely yours,
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
Dennis
Top achievements
Rank 1
answered on 20 Sep 2010, 04:03 PM
I'm curious as to weather a work around was ever found for this issue?  I have Telerik Rad Controls for Q3 2009 sp1 and am experiencing the same behavior.  I'm not sure it's something I'm missing or if the control just doesn't work the way I expected it too.  Is there somewhere I can find a better example of how to do this?  The website appears to be out of date using a FilterDescription object which doesn't seem to exist anymore.  Thanks for any help you may be able to provide.

Dennis
0
Dennis
Top achievements
Rank 1
answered on 20 Sep 2010, 04:19 PM
Sorry it appears that we are a few versions behind.  After looking at the change lists for the versions it looks like all i need is an update.  I'm going to try that.

Dennis
0
Jack
Telerik team
answered on 23 Sep 2010, 10:08 AM
Hello Dennis, please try the latest release and let us know whether the issue that you experience is still present. If so, send me your application and I will investigate your case.

I am looking forward to your reply.

Greetings,
Jack
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Asked by
Cameron Hart
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Dennis
Top achievements
Rank 1
Jack
Telerik team
Share this question
or