Home - Forums-.NET - FlyTreeView (ASP.NET) - how to enable/disable treeview Node by client script ?

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

how to enable/disable treeview Node by client script ?
Link Posted: 31-Oct-2007 02:30
Hm, you're using server-side templates instead of built-in checkboxes feature. So nodetype cannot be changed at client-side.

Latest version of FlyTreeView (published today) contains node.getElement() function.

So you can use
node.getElement().disabled = true;

and in addition:
node.getElement().getElementsByTagName(\"input\")[0].disabled = true;  

this one will work in Firefox also.
Link Posted: 31-Oct-2007 02:55
thank you
it's ok for the new features but as u saw i'm changing the nodetype at server side, so why it doesn't reflect immediately on the treeview and instead it's refreshed in a next ajax postback
Link Posted: 31-Oct-2007 03:40
Oh, I see.

I'll check it soon.
Link Posted: 31-Oct-2007 04:46
ok because it's a strange behavior and i don't think i'm missing something but who knows !
Link Posted: 31-Oct-2007 06:47
Yes, got bug and fix =)

Will be available for download in minutes.
Link Posted: 31-Oct-2007 07:12
thx for letting me know when solved
Link Posted: 02-Nov-2007 02:04
is it fixed and if so it's the last build for download ?
thx
Link Posted: 02-Nov-2007 02:16
From my previous post:

Will be available for download in minutes.


So it is available at download section:
http://www.9rays.net/download.aspx?productFamily=TreeView_ASP.NET_2
Link Posted: 02-Nov-2007 03:47
thank you