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

Data Load on Grid View happens after the busy indicator goes away

5 Answers 349 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Srujana
Top achievements
Rank 1
Srujana asked on 25 Feb 2011, 08:04 PM
Hi,

I am using Data visualization with sorting and filtering using the logic used in thread here. It is working fine but I just tried adding rad busy indicator to show that processing symbol while the server process the request, I used BackgroundWorker class just like your first look demo on busy indicator here. It works fine, but then the Grid is still empty with gridlines and column headers  available by the time the indicator goes away, and the actual data is loaded afterwards, my client is not very happy with the behavior, I am just checking to see if we could change that to load the data first, then take away busy indicator. I really don't know if it is caused by Data virtualization technique or something else.

Please let me know if there is a way,

Thanks in advance,
Srujana.

5 Answers, 1 is accepted

Sort by
0
Srujana
Top achievements
Rank 1
answered on 02 Mar 2011, 02:50 PM
Hello,

Could someone please help me with this, I am kind of stuck here It looks wierd that the grid looks blank for a while after a busy indicator goes away, Please see image2, And also my Grid width is set to auto, just to support all the screen resolution , but during the load it looks small as shown in image1, could you please tell me what is is the best approch to skip this behavior and yet can support all screen resolutions.

Thanks,
Srujana.
0
Teodor
Telerik team
answered on 07 Mar 2011, 02:16 PM
Hi Srujana,

Thank you for contacting us and please accept our apology for handling your request with some delay.

We have seen where your issue is, however, we cannot be sure what is causing it because we do not know how you display the data in the RadGridView and what other code might influence the UI. In this relation, could you please open a new support ticket and attach your project (or some working extract of it) that demonstrates the unwanted behavior? Thus we could come up with more concrete suggestions or send it back to you with some corrections.

Thank you in advance for your assistance! Looking forward to your reply.

Greetings,
Teodor
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Srujana
Top achievements
Rank 1
answered on 22 Apr 2011, 07:40 PM
Thanks for your response.

Sorry, I am not allowed to share the source code, but I can give you more details. I am using RIA services to load the data, I am using Data virtualization on Firstlook Gridview Silverlight sample with BackgroundWorker technique, the busy indicators is turned on when the loaddata method is called, and the question is when it should be turned off. The data load doesn't take that long, but once data the get returned from the call, I think the binding to the grid taking so long(i do have multiple tabs in the details section of the grid, but they are all load on demand), my problem is something simmilar to http://forums.silverlight.net/forums/p/223908/539801.aspx.

My question is when exactly should I trun of the Busy indicator, I tried doing it in

gridResults_LayoutUpdated 

 

(which doesn't turn off, and keeps it forever-may be because of the data virtualization)

 

 

gridResults_DataLoaded ( which didn't do a trick, the indicator still goes away before the data gets bind to Grid)

 

 

Page_Loaded(which doesn't turn off, and keeps it forever-may be because of the data virtualization)

Please suggest how we handle this when the Grid is using DataVirtualization.

Thanks in advance,
SC.

 

 

 

 

 

 

 

 

0
Teodor
Telerik team
answered on 28 Apr 2011, 06:52 PM
Hi Srujana,

Thank you for contacting us.

Since we have increased support inquiries recently, we need some more time to handle your query. We will contact you addressing the matter as soon as we can.    

Sorry for the inconvenience.

Greetings,
Teodor
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
Teodor
Telerik team
answered on 02 May 2011, 08:40 AM
Hello Srujana,

Thank you for clarifying the scenario in your last post.

Can you please review this online example of RadGridView (since it demonstrates binding to RIA Services)? As you will see there, the busy indicator goes on and off as it should and this is done using a simple binding to the IsBusy property of the DomainDataSource:

<Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <riaControls:DomainDataSource x:Name="DomainDataSource1" FilterOperator="Or" AutoLoad="True" QueryName="GetCustomers" PageSize="10" LoadedData="DomainDataSource1_LoadedData">
            <riaControls:DomainDataSource.DomainContext>
                <e:NorthwindDomainContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <Border telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True" Grid.RowSpan="3" />
        <telerik:RadBusyIndicator IsBusy="{Binding IsBusy, ElementName=DomainDataSource1}" >
            <telerik:RadGridView x:Name="RadGridView1" IsReadOnly="True" ItemsSource="{Binding Data, ElementName=DomainDataSource1}" AutoExpandGroups="True"
                                 CanUserFreezeColumns="False" RowIndicatorVisibility="Visible"
                                 Filtering="RadGridView1_Filtering" DistinctValuesLoading="RadGridView1_DistinctValuesLoading" />
        </telerik:RadBusyIndicator>
        <telerik:RadDataPager x:Name="RadDataPager1" Grid.Row="1" Source="{Binding Data, ElementName=DomainDataSource1}" DisplayMode="All" IsTotalItemCountFixed="True"/>
    </Grid>

Hope this will be useful. Let us know in case you need further assistance.

Regards,

Teodor
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
BusyIndicator
Asked by
Srujana
Top achievements
Rank 1
Answers by
Srujana
Top achievements
Rank 1
Teodor
Telerik team
Share this question
or