Filter Editor is cleared

5 posts, 1 answers
  1. Heiko
    Heiko avatar
    20 posts
    Member since:
    Nov 2013

    Posted 23 Mar 2015 Link to this post

    Hi,

    I am using RadGridView with filter set to 'filterrow' (Version 2014.2.729.40). I have a couple of columns and not all columns are visible at the same time. It requires scrolling from left to right to access the rightmost column.

    If I insert a filter value into the filter editor of any column (in fact it doesn't matter which one it is), this value is cleared out of the filter editor if this filter editor is scrolled out of the visible part of the window. This does not happen, if I apply that filter via the filter-funnel.
    But if I only type a few characters into the filter editor, that value has disappeard after the filter editor reappears in the visible part of the window.

    Can You tell me why those inputs are deleted?

    I recognized, that the FieldFilterEditorCreated-Event is also called every time a filter editor leaves the visible part of the window. Why?

    Regards Heiko
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 23 Mar 2015 Link to this post

    Hello Heiko,

    As it turns out I am not able to reproduce the issue. You can refer to the attched test project.
    Would you please check it and let me know how is your setup different than mine?

    Regards,
    Dimitrina
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Heiko
    Heiko avatar
    20 posts
    Member since:
    Nov 2013

    Posted 23 Mar 2015 in reply to Dimitrina Link to this post

    Hi,

    please start the 'RadGridView_WPF_AR_6' project, which You attached in Your previous post:

    1) please add the width property for the GridViewDataColumns
        Width="200" for the 'Name' Column and Width="400" for 'Established' and 'StadiumCapacity'
    2) start the project
    3) enter a value into the filter row for 'Established' but do not use the funnel to apply the filter
    4) scroll slowly to the right => if the column 'Established' reaches the left end of the visible part of the GridView the value You put into the filter for that column disappears and is lost

    That is the same that happens in my project and I would like to keep the input because I do not use the funnel to apply filters. I do it in code behind after the filter row lost focus.

    Regards Heiko
  4. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 25 Mar 2015 Link to this post

    Hi Heiko,

    Thank you for providing those additional instructions. I was indeed able to reproduce the issue and found the reason for it - it is since RadGridView is a virtualized control and its elements are reused as they are brought in and out the view area during scrolling. You can also check our online documentation explaining how the UI virtualization works. 

    In order to have the text kept while you do not have any filtering applied, you should disable the column virtualization:
    EnableColumnVirtualization="False"
    
    
    Let me know how this works for you.

    Regards,
    Dimitrina
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  5. Heiko
    Heiko avatar
    20 posts
    Member since:
    Nov 2013

    Posted 25 Mar 2015 in reply to Dimitrina Link to this post

    Hi,

    thx, that's what I was looking for.

    regards
    Heiko
Back to Top