I need to implement a grid where the user can select a list of itemes from a TreeView. Once the items are selected, the cell must show the concatenation of selected items. Attached you can find a sample screenshot of what I need.
I tried to do that creating a custom column (https://docs.telerik.com/devtools/wpf/controls/radgridview/managing-data/how-to/howto-create-custom-editor).
This is an extract from the code of my custom column.
public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
var treeView = new RadTreeView
IsOptionElementsEnabled = true,
ItemsSource = TreeViewItemsSource,
ItemContainerStyle = TreeViewItemContainerStyle,
ItemTemplate = HierarchicalItemTemplate,
var dropDownButton = new RadDropDownButton
DropDownContent = treeView,
DropDownMaxHeight = 250,
//this.BindingTarget = ???;
return dropDownButton as FrameworkElement;
My question is how to bind the checked items of the TreeView to the BindingTarget dependency property of the GridViewBoundColumnBase in order to update the field of the data item bound to the column, once the cell edit is committed.
Thanks in advance.