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

[Solved] Loading of Grid in background (not visible)

4 Answers 193 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Francisco Amador
Top achievements
Rank 1
Francisco Amador asked on 20 Jul 2010, 04:21 PM
I was just wondering if it was possible to force the grid to load while not being visible. I have grid views in tabs and clicking on a tab for the first time has a 3 second delay due to the gridview binding and loading occurring as it is being brought into view. I have tried looking through the intellisense list to see if something caught my eye, but I didn't see anything blatantly obvious.

Please let me know if my scenario is possible, if not I will just show the busy indicator and not worry about it.

Thanks

4 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 20 Jul 2010, 04:30 PM
Hello Francisco Amador,

The busy indicator would be the first choice in such situation.
To avoid waiting on tab , however you may try setting the items source with some delay - e.g. using Dispatcher.BeginInvoke  to set the items source.

Sincerely yours,
Pavel Pavlov
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
0
Francisco Amador
Top achievements
Rank 1
answered on 20 Jul 2010, 09:12 PM
Unfortunately the ItemsSource is set in advance before the tab is selected and that is not something I can change. I did however change the dataloading to asynch so that it shows that it's working during other changes when it is visible. I haven't figured out the best place to activate the whole screen busyindicator when transitioning between tabs, but I'm sure I'll be able to figure that out. Thank you.
0
Leslie
Top achievements
Rank 1
answered on 01 Oct 2010, 08:37 PM
I'm having the same problem.  I click on the tab, there is a delay while the grid loads, then the tab switches and the grid displays.  I have not been able to find a place to set a busy indicator.  On the grid is too late since it doesn't show the tab until the grid is already loaded.  I tried setting a busy indicator for the screen on the tab selection changed and preview selection, and that didn't work either.

My grid has 15 columns and about 500 records.  The delay is the same if I only have 20 records.

Leslie
0
Maya
Telerik team
answered on 07 Oct 2010, 11:44 AM
Hello Leslie,

You may try to place the RadBusyIndicator inside the corresponding RadTabItem. I am sending you a sample project illustrating the proposed solution.
 

All the best,
Maya
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
Tags
GridView
Asked by
Francisco Amador
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Francisco Amador
Top achievements
Rank 1
Leslie
Top achievements
Rank 1
Maya
Telerik team
Share this question
or