Unplanned
Last Updated: 13 May 2022 07:22 by ADMIN
Jinfeng
Created on: 22 Apr 2020 11:48
Category: UI for Xamarin
Type: Bug Report
1
RadBusyIndicator BusyContent data binding does not work
RdBusyIndicator BusyContent data binding does not work. If a string constant is assigned to the     

 

     <telerik:RadBusyIndicator
                HorizontalOptions="FillAndExpand"
                VerticalOptions="FillAndExpand"
                IsBusy="{Binding IsBusy}"
                IsVisible="{Binding IsBusy}"
                AnimationContentHeightRequest="60"
                AnimationContentWidthRequest="60"
                AnimationType="Animation3"
                AnimationContentColor="{DynamicResource BrandPrimaryColor}">
                <telerik:RadBusyIndicator.BusyContent>
                    <Label Text="{Binding BusyContent}" HorizontalOptions="Center"/>
                </telerik:RadBusyIndicator.BusyContent>
      </telerik:RadBusyIndicator>

 

RdBusyIndicator BusyContent data binding does not work for the above Label inside the "telerik:RadBusyIndicator.BusyContent". If a string constant is assigned to the Text(for example "Loading..."), then it works perfectly.

The view model 100% has the property "BusyContent" with a value. By the way, the IsBusy and IsVisible data binding work fine.   

3 comments
ADMIN
Yana
Posted on: 13 May 2022 07:22

Hi Matt,

Sorry you came across this issue with BusyContent property, I am glad to hear the workaround helped.

This is a bug on our side, so usually we do not describe workarounds in the official documentation, still we will consider adding the information as  a knowledge base article, so it's easier to find it.

Thank you for sending your feedback on this.

Regards,
Yana
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.

Matt
Posted on: 11 May 2022 10:26

Hi

I have just had exactly the same problem. But I am glad to say that the proposed workaround worked immediately thank you.

But I had to think about it carefully as the initial user had used the word BusyContent for their binding string text. And I wasn't sure immediately whether the answer was binding to that text or the RadBusyIndicator.BusyContent !

Disappointed I had to work to discover this initially thinking I had made some blunder. Perhaps a note in the documentation when there are code workarounds might be helpful.

Regards

 

Matt

 

ADMIN
Yana
Posted on: 23 Apr 2020 10:46

Hi Jinfeng,

Thank you for sending the snippet.

Indeed, the binding in the BusyContent is not resolved automatically as the BindingContext of the BusyIndicator is not propagated.  I confirm this is an issue on our side, so I've updated the status of this item to "Unplanned".

In the meantime, you can use the following binding to workaround the issue:

<telerik:RadBusyIndicator x:Name="busyIndicator"
    HorizontalOptions="FillAndExpand"
    VerticalOptions="FillAndExpand"
    IsBusy="{Binding IsBusy}"
    IsVisible="{Binding IsBusy}"
    AnimationContentHeightRequest="60"
    AnimationContentWidthRequest="60"
    AnimationType="Animation3"
    AnimationContentColor="Yellow">
    <telerik:RadBusyIndicator.BusyContent>
        <Label Text="{Binding BindingContext.BusyContent, Source={x:Reference busyIndicator}}" HorizontalOptions="Center"/>
    </telerik:RadBusyIndicator.BusyContent>
</telerik:RadBusyIndicator>

I've updated your points for bringing this to our attention.

Let me know if you have any additional questions or concerns on this.

Regards,
Yana
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.