I am using a Radzen DataGrid and a Radzen Tree. When we select a row in datagrid, the tree showing that selected element's hierarchy(There is a parent child hierarchy among that grid elements).So the relevant node in tree is getting highlighted according to selected row.
Problem happens here. We can select another node in tree.I want to select the relevant row in the grid also when we select a different node in tree.How to do that.
I can get the selected node using Change property in tree.
<RadzenTree Data=@categoryNodeList Style="height: 100%; width: 100%;" Change="@OnChange">
<RadzenTreeLevel TextProperty="Name" ChildrenProperty="Children" Selected=@(item => ((PartnerCategoryNode)item) == selectedCategoryNode)
Expanded=@(data=>true) HasChildren=@(e => (e as PartnerCategoryNode).Children.Any()) />
</RadzenTree>
I used datagrid.SelectRow(); to select the row. Although the row is selected, grid doesn't render with that selected row by highlighting that row.
Give me a solution to render that row in grid in selected mode when select a different node in tree OR to disable the selecting nodes in tree.