AutoFilter Bug?

5 posts, 0 answers
  1. Cameron Hart
    Cameron Hart avatar
    17 posts
    Member since:
    May 2008

    Posted 26 Aug 2009 Link to this post

    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:

    1         internal void FillDropDowns(bool bRefill) 
    2         { 
    3             string sSuburbText = this.mcboSuburb.Text; 
    4             // string sTownText = this.cboTown.Text; 
    5  
    6             if (bRefill) 
    7             { 
    8                 this.LocationsSentTo.Clear(); 
    9                 this.LocationsSentToTableAdapter.Fill(this.DataSet, "LocationsSentTo"); 
    10             } 
    11  
    12             this.mcboSuburb.DataSource = this.LocationsSentTo; // This is a wrapper property around the DataSet table referred to above. 
    13             this.mcboSuburb.DisplayMember = "postCode_prefix"
    14             this.mcboSuburb.ValueMember = "postCode"
    15  
    16             RadGridView gridView = this.mcboSuburb.MultiColumnComboBoxElement.EditorControl; 
    17  
    18             GridViewDataColumn prefixColumn = gridView.Columns["postCode_prefix"]; 
    19             prefixColumn.HeaderText = "Suburb"
    20             prefixColumn.Index = 0; 
    21             prefixColumn.BestFit(); 
    22  
    23             GridViewDataColumn postCodeColumn = gridView.Columns["postCode"]; 
    24             postCodeColumn.HeaderText = "PostCode"
    25             postCodeColumn.Index = 1; 
    26             postCodeColumn.BestFit(); 
    27  
    28             GridViewDataColumn sentToColumn = gridView.Columns["sentTo"]; 
    29             sentToColumn.HeaderText = "SentTo (D)"
    30             sentToColumn.Index = 2; 
    31             sentToColumn.IsVisible = Program.DebugMode; 
    32             sentToColumn.BestFit(); 
    33  
    34             GridViewDataColumn siteIdColumn = gridView.Columns["siteId_fk"]; 
    35             siteIdColumn.HeaderText = "Site ID (D)"
    36             siteIdColumn.Index = 3; 
    37             siteIdColumn.IsVisible = Program.DebugMode; 
    38             siteIdColumn.BestFit(); 
    39  
    40             if (this.mcboSuburb.EditorControl.MasterGridViewTemplate.FilterExpressions[this.mcboSuburb.DisplayMember] == null
    41             { 
    42                 FilterExpression filter = new FilterExpression( 
    43                     this.mcboSuburb.DisplayMember, FilterExpression.BinaryOperation.AND, 
    44                     GridKnownFunction.Contains, GridFilterCellElement.ParameterName); 
    45  
    46                 filter.Parameters.Add(GridFilterCellElement.ParameterName, true); 
    47  
    48                 this.mcboSuburb.EditorControl.MasterGridViewTemplate.FilterExpressions.Add(filter); 
    49             } 
    50  
    51             this.mcboSuburb.SelectedItem = null
    52             this.mcboSuburb.Text = sSuburbText; 
    53         } 

    Note that the FillDropDowns is not being called by any events while the typing or opening is taking place.
  2. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 31 Aug 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dennis
    Dennis avatar
    5 posts
    Member since:
    Dec 2008

    Posted 20 Sep 2010 Link to this post

    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
  5. Dennis
    Dennis avatar
    5 posts
    Member since:
    Dec 2008

    Posted 20 Sep 2010 Link to this post

    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
  6. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 23 Sep 2010 Link to this post

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