Filterbox suddenly loses its textbox while typing?

6 posts, 0 answers
  1. Sunil
    Sunil avatar
    230 posts
    Member since:
    Jan 2004

    Posted 16 Dec 2010 Link to this post

    I have a very irritating problem with RadGridView. Look at the video: Filter box suddenly becomes Non-Editable by itself

    I am using Q1 2008 SP1. The filter it seems has suddenly become non-editable, at least from the way the textbox vanishes, but if I press on any key like 'd' or 's' or 'q' then this same filter box will show up its filter textbox.

    Anyone knows how to get rid of this 'weird' problem?

    Thanks
    Sunil
  2. Sunil
    Sunil avatar
    230 posts
    Member since:
    Jan 2004

    Posted 16 Dec 2010 Link to this post

    I was able to figure out the cause of the problem and come up with a solution.
    SOLUTION
    In my original radgrid, I had autosizecolumnsmode set to 'fill'. When I changed the autosizecolumnsmode to 'none' before databinding and then after databinding set it to 'fill',  the filtertextbox stopped vanishing suddenly after typing in one or two characters. Problem was solved.
    EXPLANATION
    In original scenario, as I typed the filtered rows showed up. If the number of filtered rows were 3 or 4 or less than the height available for data rows  i.e. no vertical scroll was needed, then suddenly the width of the radgrid increases since its autosizecolumnsmode is set to fill. And this increase in width, was for some reason, causing the radtextboxeditor of filter  to end its edit operation. Look at original video, and focus your eyes on the TOP right  corner, and you'll notice the scrollbar vanishes  causing the width of radgridview to increase WHEN  number of filtered rows is very few.. Now look at this video Problem Solved, where you will notice that when number of rows is very few, the width of the grid remains the same even though the vertical scroll bar has vanished. The space occupied by vertical scroll bar shows up as empty clearance space. The autosizecolumnsmode is set to none in the latter scenario.
    QUERY
    Even though I have overcome this weird behavior, what I don't understand  is why the width of radgrid should decide if the filtertextbox editing should end or not?
    I wouldn't be surprised if this 'weird' and irritating behavior is also shown by the latest version of radgrid.

    Thanks
    Sunil
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 20 Dec 2010 Link to this post

    Hi Sunil,

    I am glad that you have found a workaround for Q1 2008 SP1 version which avoids the described behavior. I just only want to let you know that this issue has been addressed in one of our previous versions and it is not present in the latest version.

    Best wishes,
    Martin Vasilev
    the Telerik team
    Check out the Q1 2011 Roadmap for Telerik Controls for Windows Forms.
  5. Aho
    Aho avatar
    21 posts
    Member since:
    Oct 2009

    Posted 02 Feb 2011 Link to this post

    @Martin
    I am using: Telerik WinForms VSExtensions   2010.03.1214.0

    The filter behaves still as described by Sunil. Unfortunately the workaround does not work.

    My RadGridView is bound to a Linq DataSource in the code.
  6. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 07 Feb 2011 Link to this post

    Hello Aho,

    Is the described issue the same as the one you have regarded in the support ticket which I have already answered giving a solution for it? If not, I would kindly ask you to send more details on how to reproduce the issue with the latest version.

    Greetings,
    Martin Vasilev
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
  7. Aho
    Aho avatar
    21 posts
    Member since:
    Oct 2009

    Posted 07 Feb 2011 Link to this post

    Hi Martin

    Yes it's fixed.

    Thank you!
Back to Top
UI for WinForms is Visual Studio 2017 Ready