Hello, i want to extend functionality of the treeview with a textbox at top for search funtions. I'm trying to make with code similar to this (see below) but Treeview don't have "Item" like TextBox to get the instance. How can i get this functionality?
private static void AddIconToTextBoxElement(RadTextBoxElement textElement, ImagePrimitive icon)
{
var item = textElement.TextBoxItem;
textElement.Children.Remove(item);
icon.SetValue(DockLayoutPanel.DockProperty, Telerik.WinControls.Layouts.Dock.Left);
var dockPanel = new DockLayoutPanel
{
LastChildFill = true
};
dockPanel.Children.Add(icon);
dockPanel.Children.Add(item);
textElement.Children.Add(dockPanel);
}