Home - Forums-.NET - FlyTreeView (ASP.NET) - Scrolling to selected node.

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Scrolling to selected node.
Link Posted: 20-Aug-2007 22:00
[quote="EvgenyT"]Actually, the problem is that Splitter renders DIV elements with display:none.
So that is the reason why FlyTreeView generates the error.

Now, I'm thinking what we can do to workaround the issue.


Hm, never actually thought of that. That's probably why the flytreeview works nicely with all other controls.

I've been trying different solutions for this the past 2 days and can't find a workaround at all. But then again, I don't have the source code to the tree either so I'm mainly guessing around.  

Maybe you could find a way for the tree to work even if the divs are display:none. Like some exception in the code. Or maybe it's not that simple since the tree itself uses a lot of CSS to work.  

Hm, I'm puzzled at this. If you find a way around this, you are my hero of the year, even if you already are with the help you've already provided. ;)
Link Posted: 20-Aug-2007 22:43
We have a possible solution here.
At least it works with our test case (with splitter).
We're now using try-catch block for the focus() call, and then trying alternative way to focus element (though scrollIntoView()).

So you can already download it from our site.
Link Posted: 20-Aug-2007 23:42
[quote="EvgenyT"]We have a possible solution here.
At least it works with our test case (with splitter).
We're now using try-catch block for the focus() call, and then trying alternative way to focus element (though scrollIntoView()).

So you can already download it from our site.


Hi,

I downloaded the latest version and tried. I assumed I don't have to change any of my code?

And actually .... it works now. I don't get a javascript error.

However, I noticed an issue. It only works when you set the "Height"-variable of the tree to something. If I omit this property, the focus doesn't appear at all. There seem to be somthing with the height anyway.

I can live with this though . ;) Just had to mention it. Maybe needs a little more tweaking?

Nice work!
Link Posted: 20-Aug-2007 23:52
What I noticed with splitter is that it clips nested content.
I just added 100 nodes and didn't get any scrollbar.
So I just set FlyTreeView.Height to a fixed value.

In you case you can try to set FlyTreeView.Heght to 100%. This might work, though I didn't test it.
Link Posted: 21-Aug-2007 00:12
[quote="EvgenyT"]What I noticed with splitter is that it clips nested content.
I just added 100 nodes and didn't get any scrollbar.
So I just set FlyTreeView.Height to a fixed value.

In you case you can try to set FlyTreeView.Heght to 100%. This might work, though I didn't test it.


There are some issues with the height, however it's nothing critical. Just noticed that it sometimes goes totally wrong. It could be my design too though, so I'll check it further and get back if I notice something suspicious.

Thanks for the great support on this issue. I'll surely recommed FlyTreeView to my collegues!

Cheers!