RadBusyIndicator and styles

5 posts, 0 answers
  1. Eduardo
    Eduardo avatar
    14 posts
    Member since:
    Jul 2011

    Posted 20 Sep 2011 Link to this post

    Hi, I have found a problem with this control when I change the style of the control dynamically. I explain with more detail:

    - There are several HeaderedControls which present inside a Busy Indicator for displaying a RadViewGrid.
    - I make a difference between these headered controls so depending on a specfied property, the style of each control  is style 'A' or 'B'. That I do in the HeaderredControl_Loaded event.

    The problem is that the  indicator onlu appears if I write the style property in the .xaml, and only for a kind of style not both.

    Any suggestions?
    Thanks in advance
  2. Eduardo
    Eduardo avatar
    14 posts
    Member since:
    Jul 2011

    Posted 27 Sep 2011 Link to this post

    No ideas??
  3. DevCraft banner
  4. Pana
    Admin
    Pana avatar
    748 posts

    Posted 30 Sep 2011 Link to this post

    Hello Eduardo,

    I am sorry but I could not reproduce such problem. I have created a project where runtime on button click the Style of a RadBusyIndicator is changed and it works fine. Please check the attached project. Could you send me a small project that could better explain the problem?

    All the best,
    Pana
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  5. Eduardo
    Eduardo avatar
    14 posts
    Member since:
    Jul 2011

    Posted 03 Oct 2011 Link to this post

    Hi again, the example you provided me is not exactly the goal I want to achieve.
    I am trying to modify the style of the control that contains the RadBusyIndicator.  The part of the code that indicates that is:

    c#:

    if (role.isValid)
                    header.Style = this.Resources["StyleHeaderedContentA"] as Style;
                else
                    header.Style = this.Resources["StyleHeaderedContentA"] as Style;

    where header is a HeaderedContentControl:

    <telerik:HeaderedContentControl Loaded="HeaderedContentControl_Loaded" telerikDragDrop:RadDragAndDropManager.AllowDrop="True" telerikDragDrop:RadDragAndDropManager.AllowDrag="True" Style="{StaticResource StyleHeaderedContentA}" Header="{Binding Name}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Height="230" Width="260" Margin="4">
    <telerik:RadBusyIndicator Grid.Row="1" x:Name="radBusyIndicator" IsBusy="True">
                                            <telerik:RadBusyIndicator.OverlayStyle>
                                                <Style TargetType="Rectangle">
                                                    <Setter Property="Fill" Value="{StaticResource BusyBackground}" />
                                                </Style>
                                            </telerik:RadBusyIndicator.OverlayStyle>
                                            <telerik:RadGridView Margin="2" Name="GridViewPermissionsInRole" VerticalGridLinesBrush="Transparent" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Hidden" telerikDragDrop:RadDragAndDropManager.AllowDrag="True" ItemsSource="{Binding Permissions.Keys}"
                                                RowIndicatorVisibility="Collapsed" IsReadOnly="True"
                                                AutoGenerateColumns="True" CanUserFreezeColumns="False"
                                                CanUserResizeColumns="False"
                                                ShowGroupPanel="False" SelectionMode="Extended" ShowColumnHeaders="False">
                                                <telerik:RadGridView.RowHeight>40</telerik:RadGridView.RowHeight>
                                            </telerik:RadGridView>
                                        </telerik:RadBusyIndicator>
                                   </Grid>
                                </telerik:HeaderedContentControl>

    I hope this could be valid for your understanding...

    Thanks!!
  6. Pana
    Admin
    Pana avatar
    748 posts

    Posted 07 Oct 2011 Link to this post

    Hi Eduardo,

    The attached project does absolutely the same only with HeaderedContentControl and RadBusyIndicator within with the styles being applied on the HeaderedContentControl. I think it works fine. Could give me further directions how to reproduce the problem?

    Best wishes,
    Pana
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top
DevCraft banner