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

Filter Editor is cleared

4 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ITC
Top achievements
Rank 1
ITC asked on 23 Mar 2015, 11:23 AM
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

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 23 Mar 2015, 12:58 PM
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.

 
0
ITC
Top achievements
Rank 1
answered on 23 Mar 2015, 01:25 PM
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
0
Accepted
Dimitrina
Telerik team
answered on 25 Mar 2015, 12:27 PM
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.

 
0
ITC
Top achievements
Rank 1
answered on 25 Mar 2015, 01:04 PM
Hi,

thx, that's what I was looking for.

regards
Heiko
Tags
GridView
Asked by
ITC
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
ITC
Top achievements
Rank 1
Share this question
or