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

Loading while grouped

1 Answer 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 13 Aug 2013, 12:57 AM
First off I have a RadEntityFrameworkDataSource, RadGridView,  RadDataPager linked working nicely, with problem the RadGridView is inside a tab control, so every time we switch back to the tab with the RadGridView I hit Telerik.Windows.Controls.RadEntityFrameworkDataSource.OnLoaded then Telerik.Windows.Controls.RadEntityFrameworkDataSource.TryRefreshView() which goes out to the data source and reloads it, minor annoyance normally.  When data is grouped by one or more columns though it completely ignores the filters and loads the entire query which is bad, and honestly I can't figure out why since it tosses them afterwards.  In local on a test machine it is hard to see, but on a slightly slow vpn it shows up easily with a large dataset.  Is there some way to stop this refresh?  I can't seem to find a setting on either the datasource or gridview to disable it.  I really don't need the refresh I just want to put them back at their previous query.

All 3 are declared in the xaml, I tried moving the datasource into the code behind, but must missing something on how to link it up programmatically.

Any help would be appreciated

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 13 Aug 2013, 01:56 PM
Hello Jeff,

If you have placed the GridView inside a TabItem in a TabControl, then please set the IsContentPreserved property of the TabControl to True. That way the GridView will not be reloaded every time when you switch between the tab items. You can check this help article for a reference.


Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Jeff
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or