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
- 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
4 Answers, 1 is accepted
0
Eduardo
Top achievements
Rank 1
answered on 27 Sep 2011, 08:05 AM
No ideas??
0
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
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 >>
0
Eduardo
Top achievements
Rank 1
answered on 03 Oct 2011, 08:01 AM
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#:
where header is a HeaderedContentControl:
I hope this could be valid for your understanding...
Thanks!!
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!!
0
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
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 >>