Busy indicator - no data appear when loading- redundant

1 Answer 458 Views
BusyIndicator
Daniel
Top achievements
Rank 1
Silver
Bronze
Daniel asked on 18 May 2022, 03:54 AM

Hi,

On continue to this tread: https://www.telerik.com/forums/telerikmauicontrols-radentry-in-list-view-value-not-seen

when it look for data its right no data , busy indicator working and later comes the data.

No data should not appear.


  <telerikPrimitives:RadBusyIndicator Grid.Row="0" Margin="0,5,0,0"  x:Name="busyIndicator" IsVisible="{Binding IsVisibleBusyIndicator, Mode=TwoWay}"
                                  AnimationContentHeightRequest="100"
                                  AnimationContentWidthRequest="100"
                                  AnimationContentColor="{DynamicResource PrimaryColor}"
                                                    IsBusy="{Binding IsBusyBusyIndicator, Mode=TwoWay}">
                <telerikPrimitives:RadBusyIndicator.Content>
                    <Label Text="Loading..." TextColor="Black" />
                </telerikPrimitives:RadBusyIndicator.Content>
            </telerikPrimitives:RadBusyIndicator>

 

1 Answer, 1 is accepted

Sort by
0
Lance | Senior Manager Technical Support
Telerik team
answered on 19 May 2022, 04:15 PM

Hi Daniel,

The Content property of the RadBusyIndicator is visible when the IsBusy=False. So, based on what your code has, the screenshot is correct.

If you want certain content to be seen while IsBusy=True, then you need to set the BusyContent property and follow these instructions .NET MAUI BusyIndicator Documentation | Custom Busy Content.

Side Notes:

Why are you using TwoWay data binding? It doesn't make sense here. Why do you want the BusyIndicator to change the view model's value? It should only be the view model property changing the BusyIndicator.

Finally, you can bind the same bool property to both IsBusy and IsVisible. There's no need for separate properties in this scenario because it can easily get out of sync.

Updated code snippet

Here is the code I expect you are looking for.:

<Grid>
    <ListView Grid.Row="0" ..../>

    <RadBusyIndicator IsVisible="{Binding IsBusyBusyIndicator}"
                                   IsBusy="{Binding IsBusyBusyIndicator}"
                                   AnimationContentHeightRequest="100"
                                   AnimationContentWidthRequest="100"
                                   AnimationContentColor="{DynamicResource PrimaryColor}"
                                   BackgroundColor="#AAFFFFFF"
                                   BusyContent="Loading..."
                                   Grid.Row="0"/>
</Grid>

Example

If you would like a more thorough example, please visit the Integration documentation article .NET MAUI BusyIndicator Documentation | ListView Integration | Telerik UI for .NET MAUI.

Regards,
Lance | Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 19 May 2022, 05:46 PM

OK

P.S => your mail notification stop working today.

Lance | Senior Manager Technical Support
Telerik team
commented on 19 May 2022, 06:35 PM

Thank you for letting me know, I'll ask the admins to take a look.
Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 22 May 2022, 04:41 AM

Please look when I set  BusyContent="Loading..." I got this error.

 

Lance | Senior Manager Technical Support
Telerik team
commented on 22 May 2022, 08:33 PM

Yeah, I noticed that yesterday. This problem is due to a bug in MAUI right now (there's an issue with the [Content] property attribute). This means you cannot set the BusyContent property at all until that that is resolved.

For now, just use your own Label with RadBusyIndicator. For example:

<StackLayout IsVisible="{Binding MyAppIsBusy}">
    <RadBusyIndicator IsBusy="{Binding MyAppIsBusy}" .../>
    <Label Text="Loading..." />
</StackLayout>

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 23 May 2022, 06:47 AM

P.S => your mail notification still not working.
Lance | Senior Manager Technical Support
Telerik team
commented on 23 May 2022, 03:09 PM

I have reported this to the admins.

In the meantime, can you check your Yahoo spam/junk folder and let me know if any replies have been caught there?

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 23 May 2022, 04:11 PM

Yes, it go to spam.

Regarding the sppinner i will wait to fix

Lance | Senior Manager Technical Support
Telerik team
commented on 23 May 2022, 05:58 PM

Thank you for letting me know! I will tell the admins they don't need to check all the server logs :)
Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 23 May 2022, 06:11 PM

It ok now.
Tags
BusyIndicator
Asked by
Daniel
Top achievements
Rank 1
Silver
Bronze
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or