Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

possible bug in treeview

45 views
Skip to first unread message

Marcus Bitzer

unread,
Sep 18, 2002, 7:19:21 AM9/18/02
to
Hi,

i'm using a treeview in a aspx site.
When i click on a treenode ( let's say the 10th element )
the selectedindexchange() is called on the server.
I delete this 10th element in this function and set the selected
index to the 1st element. The treeview appears ow in the aspx site,
however, the tree does no selection (hover ) anymore, does not
call the selectedindexchange() on the server, but calls the navigateurl.

It seems like that if the hovernodeindex is set to a not existing treenode,
the tree itself ( or the code in the treeview.htc ) has some problems.

Has anyone else experienced this ?

Thanks,
Marcus


Ashwini Rajesh

unread,
Sep 18, 2002, 10:19:20 PM9/18/02
to

Hi ,

I am able to add nodes to a treeview, but I am not able to find a code
for the deletion of the treeview . I would appreciate if u could send me
the code for the deletion.

Regards

Ashwini Rajesh


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Marcus Bitzer

unread,
Sep 19, 2002, 7:20:53 AM9/19/02
to
Hi,

in treeview.htc, function HoverNode(textnode) I added the following code
before the first if - clause :
if (textnode == null )
{
return;
}
Now, the tree is working correctly.
The code without the new if-clause caused an error on the
aspx side.

Anyway, thanks for your effort Ashwini .

Marcus

"Marcus Bitzer" <ma...@gmx.de> wrote in message
news:e$K5Kf6XCHA.1652@tkmsftngp08...
> Hi,
>
> thanks for your help.
> To be more exactly, the code deletes the tree and reassembles then the
tree
> again ( has some project specific reason ).
>
> To reproduce the misbehaviour,
> click on the last "..." ( the 10th ) in the tree. Then the
> selectedindexchange()
> inserts only 9 treenodes; after that the existing ( 1 to 9 ) treenodes
> aren't highlighted
> anymore in the webpage.
>
> Thanks
>
> Marcus
>
> "Ashwini Rajesh" <rg.as...@digital.com> wrote in message
> news:#3Zt3L4XCHA.1548@tkmsftngp08...

Gabor

unread,
Oct 24, 2002, 1:46:16 AM10/24/02
to
Hi,

I have the similar problem.

I populate the TreeView from SQL server table. When I add new row to the
database, in the on_load event I populate the TreeView again. Sometimes the
code halt in the htc page at the following row

<public:attach event=ondocumentready onevent="ondocumentready()"/>

and add an error message:

"Microsoft JScript runtime error: 'subtree.all' is null or not an object"

In the same time the IE hangs, and I have to restart the app.

Because I'm newbie, can anybody tell me, what is the htc file, and where is
it located?

Thanks in advance

Gabor


"Marcus Bitzer" <ma...@gmx.de> wrote in message

news:eRDVP68XCHA.1432@tkmsftngp10...

Marcus Bitzer

unread,
Oct 24, 2002, 2:13:57 AM10/24/02
to
Hi

the htc file is in the directory where you installed the webcontrols.
( e.eg. \inetpub\wwwroot\wenctrl_client}1_\treeview.htc ).

This file contains javascript code for the webcontrols.

Marcus

"Gabor" <prof...@axelero.hu> wrote in message
news:un3M7UteCHA.1796@tkmsftngp12...

bocan...@googlemail.com

unread,
Apr 19, 2013, 6:34:14 PM4/19/13
to
The ploblem is your web explorer.. frecuently (ie) if you have this.. activate the "compatibility mode"

The problem is this: the treeview code is javascript... ie execute ms jscript..
0 new messages