Home - Forums-.NET - FlyTreeView (ASP.NET) - Setting focus on FlyTree

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Setting focus on FlyTree
Link Posted: 10-Nov-2006 03:31
Hi,

Does anyone know the syntax to set the focus on the FlyTree in Javascript?

I have tried:
document.getElementById(\"TreeView1\").focus();
document.form1.TreeView1.focus();
CFlyTreeView.getInstanceById(\"TreeView1\").focus();
CFlyTreeView.getInstanceById(\"TreeView1\").setFocus();

All give me the error \"Object dooesn't support this property of method.\"
Link Posted: 10-Nov-2006 07:24
Set the TabIndex property to some value.
This should work:
document.getElementById(\"\").focus();
Link Posted: 10-Nov-2006 08:06
Thanks Evgeny. That did it.  One of these days I'll get the FlyTree client side syntax down.