Hi Mitch,
There is no straightforward method or property available in TreeViewAdv control to achieve this. We could achieve this by customizing the TreeViewAdv control and overriding OnKeyDown method.
Here is the code snippet:
class CustomTreeView : Syncfusion.Windows.Forms.Tools.TreeViewAdv
{
protected override void OnKeyDown(System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyData == System.Windows.Forms.Keys.Down )
{
this.ActiveNode = this.ActiveNode.NextSelectableNode;
}
else if ( e.KeyData == System.Windows.Forms.Keys.Up)
{
this.ActiveNode = this.ActiveNode.PrevSelectableNode;
}
else if (e.KeyData == System.Windows.Forms.Keys.Enter)
{
if (this.ActiveNode != null)
{
this.SelectedNode = this.ActiveNode;
}
}
else
{
base.OnKeyDown(e);
}
}
}
Herewith I have attached the sample. Please have a look at the sample and let me know if it helps you.
CustomTreeViewAdvThanks for using Syncfusion products.
Regards,
Murugan P.S