Completed
Last Updated: 15 Mar 2023 11:38 by ADMIN
Release 5.1.0
atlanta
Created on: 18 Oct 2022 15:39
Category: DataGrid
Type: Bug Report
1
DataGrid: [Windows] CellContentTemplate content does not get updated in a custom scenario
The following code uses RadHighlightedLabel and manipulates the highlighted text by the Text of an Entry.

<telerik:RadDataGrid x:Name="dataGrid" AutomationId="dataGrid" AutoGenerateColumns="False">
                <telerik:RadDataGrid.Columns>
                    <telerik:DataGridTextColumn PropertyName="Country" HeaderText="HighlightedLabel">
                        <telerik:DataGridTextColumn.CellContentTemplate>
                            <DataTemplate>
                                <telerik:RadHighlightLabel UnformattedText="{Binding Country}"
                                                                           HighlightText="{Binding Source={x:Reference searchEntry}, Path=Text}"
                                                                           HighlightTextColor="Red"/>
                            </DataTemplate>
                        </telerik:DataGridTextColumn.CellContentTemplate>
                    </telerik:DataGridTextColumn>
                </telerik:RadDataGrid.Columns>
            </telerik:RadDataGrid>

Expected: When typing in the entry the text of the label should get highlighted and remove the highlight when the text of the entry is removed.

Actual: The highlighted text doesn't get updated and stays the same.

 

 

Attached Files:
0 comments