or
Hi Telerik team,
I am trying to change the colour of the row border conditionally by following style settings. But I am unable to view the coloured border unless I change the value of the row border thickness to some value greater than 0. But increasing the row border thickness , increases the gray colored gap between rows.
Is there any other approach than can help change the colour of the gidview row border without changing the row border thickness i.e using the default border settings.
<
telerik:RadGridView
x:Name
=
"radgvActivity"
Grid.Row
=
"2"
Margin
=
"0"
IsReadOnly
=
"False"
RowIndicatorVisibility
=
"Visible"
ScrollMode
=
"RealTime"
AutoGenerateColumns
=
"False"
EnableRowVirtualization
=
"True"
CanUserFreezeColumns
=
"False"
CanUserResizeColumns
=
"True"
Width
=
"780"
Height
=
"600"
BeginningEdit
=
"radgvActivity_BeginningEdit"
RowEditEnded
=
"radgvActivity_RowEditEnded"
>
<
telerik:RadGridView.Resources
>
<
Style
TargetType
=
"{x:Type telerik:GridViewRow}"
>
<
Setter
Property
=
"BorderThickness"
Value
=
"1"
></
Setter
>
<
Style.Triggers
>
<
DataTrigger
Binding
=
"{Binding Path=ActType}"
Value
=
"4"
>
<
DataTrigger.Setters
>
<
Setter
Property
=
"BorderBrush"
Value
=
"Red"
/>
</
DataTrigger.Setters
>
</
DataTrigger
>
</
Style.Triggers
>
</
Style
>
</
telerik:RadGridView.Resources
>
Many Thanks !!
Regards,
Mausami
template.ItemContainerStyle = frameworkElement.FindResource("TreeViewItemStyle") as Style;
into my template selector but it did not seem to have any effect.
Note that if I set ItemTemplate="{StaticResource blah}" instead of
ItemTemplateSelector="{StaticResource selector" things works fine.
Thanks
My Requirement is I want add Image for RadComboBoxItem from static folder. The following was my code.
<telerik:RadComboBox Name="Salutaion" Grid.Column="4" Width="75" Grid.Row="0" HorizontalAlignment="Left"
IsEditable="True" IsReadOnly="True" telerik:StyleManager.Theme="Office_Blue"
ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Clear">
<telerik:RadComboBoxItem Content="Male"/>
<telerik:RadComboBoxItem Content="Female"/>
</telerik:RadComboBox> Thanks and Regards Naresh Mesineni