Hello all together,
in my RadDataGrid I have a label as DataTemplate. I'm setting the labels text color according to it's binding value "IsSelected" to white or black. I works very well. It is the same solution as for highlighting a tree item in the RadTreeView https://www.telerik.com/forums/highlighting-selected-treeview-item
The problem is, the whole RadDataGrid is flickering when the labels text colors are changing after an item tap, and the RadTreeView is not.
What's the problem with RadDataGrid?
Thank you,
best regards
Martin
Xaml to highlight the selected RadDataGrid-Item:
<
telerikGrid:RadDataGrid.SelectionStyle
>
<
telerikGrid:DataGridBorderStyle
BackgroundColor
=
"{StaticResource CustomerColor}"
BorderThickness
=
"0"
/>
</
telerikGrid:RadDataGrid.SelectionStyle
>
<
telerikGrid:RadDataGrid.Columns
>
<
telerikGrid:DataGridTemplateColumn
HeaderText
=
""
>
<
telerikGrid:DataGridTemplateColumn.CellContentTemplate
>
<
DataTemplate
>
<
Label
Text
=
"{Binding Name}"
HeightRequest
=
"44"
Margin
=
"10,0,10,0"
FontSize
=
"14"
HorizontalOptions
=
"FillAndExpand"
HorizontalTextAlignment
=
"Start"
VerticalTextAlignment
=
"Center"
VerticalOptions
=
"FillAndExpand"
TextColor="{Binding IsSelected,
Converter={StaticResource IsHighlightedToColorConverter},
ConverterParameter={x:Static ctrls:BooleanColor.SelectedItemColor}}" />
</
DataTemplate
>
</
telerikGrid:DataGridTemplateColumn.CellContentTemplate
>
</
telerikGrid:DataGridTemplateColumn
>
</
telerikGrid:RadDataGrid.Columns
>