Viewport and TreeView
*NEW - Coolite Toolkit Version 0.7 now available for DOWNLOAD. See also Examples Explorer.
 

Coolite Forums

Welcome Guest ( Login | Register )
 
««12
Viewport and TreeView
Subscribe
Last Login: Today @ 6:54:09 AM
Posts: 44,
Posted 8/6/2008 4:59:05 AM

Group: Coolite Early Adopter
Hi Timothy, thank you!!

That seems to be the reason for that issue, I'll just have to call multiple update methods as I really need to use the tab control for this project.

I'll have to get back to my main problem now, which is the treeview firing OnTreeNodePopulate when clicking on a select item???

I can disable this action by using EnableClientScript=false on the treeview, but then the tree acts really weird.
Last Login: Today @ 8:10:05 PM
Posts: 648,
Posted 8/6/2008 5:00:31 AM

Group: Coolite Premium Member & Early Adopter
Hello Tony,

I've just confirmed that the JavaScript error you are getting is a direct result of my previous reply, and Coolite is looking into it.  The TabPanel at the moment has a problem being rendered inside of a UpdatePanel which is causing some elements to be destroyed on render, which in turn throws an Ext.fly() error.

You might want to keep your eye on my bug request, and see how that gets resolved.

As a side note, you might also want to consider moving to the Premium License, so you can immediately get the fix instead of having to wait -- the boys at Coolite are good like that

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] gmail [dot] com
Coolite Toolkit 0.7 SVN (Professional Edition)
Microsoft .NET Framework 2.0
Microsoft ASP.NET Ajax 1.0

Last Login: Today @ 8:10:05 PM
Posts: 648,
Posted 8/6/2008 5:15:40 AM

Group: Coolite Premium Member & Early Adopter
Continued ...

The OnTreeNodePopulate firing when you click on a tree node item is indeed a correct action for the Microsoft ASP.NET TreeView when your nodes are using PopulateOnDemand="True".

You might want to check out the following documentation from Microsoft:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.ontreenodepopulate.aspx

Hope this helps!

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] gmail [dot] com
Coolite Toolkit 0.7 SVN (Professional Edition)
Microsoft .NET Framework 2.0
Microsoft ASP.NET Ajax 1.0

Last Login: Today @ 6:54:09 AM
Posts: 44,
Posted 8/6/2008 5:32:12 AM

Group: Coolite Early Adopter
Thanks Timothy,
I will ask about the premium license, but until I have some completed products to demo i'm going to have to wait :o(


re continued....

I understand this firing when PopulateOnDemand="True", but I have set this property to false on the lowest nodes of the tree!!
Last Login: Today @ 8:10:05 PM
Posts: 648,
Posted 8/6/2008 5:42:43 AM

Group: Coolite Premium Member & Early Adopter
Hello Tony,

If you are disabling PopulateOnDemand on tree nodes, why are you listening for OnTreeNodePopulate?  Are you using a mixed set of some tree nodes populating on demand while the others are not?

Oh, and my suggestion about the Premium License is only a suggestion, don't think I'm a sales rep or something lol

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] gmail [dot] com
Coolite Toolkit 0.7 SVN (Professional Edition)
Microsoft .NET Framework 2.0
Microsoft ASP.NET Ajax 1.0

Last Login: Today @ 6:54:09 AM
Posts: 44,
Posted 8/6/2008 5:59:06 AM

Group: Coolite Early Adopter

Hi Timothy,

To make things easier i'll explain what this treeview is for.

It lists all the IIS Servers within the company, then under that I have a node for websites and a node for ftpsites and under each of these nodes i have the list of webs or ftpsites eg:

..

-IISSERVER 1
    -Web Sites
        -Website1
        -Website2
    -FTP Sites
        -Ftpsite1
        -Ftpsite2

-IISSERVER 2
    +Web Sites
    +FTP Sites


..

I would like PopulateOnDemand to fire only when a servername is clicked as this adds the nodes you see above, but when I then click on a website or ftpsite PopulateOnDemand still fires even though I 'think' i have set this to false for these nodes when adding them to the tree.

Sorry to waste so much of your time!

Ps: Don't worry about your premium license suggestion, when this app is all working i'll be able to request one from above!

Last Login: Today @ 8:10:05 PM
Posts: 648,
Posted 8/6/2008 6:10:00 AM

Group: Coolite Premium Member & Early Adopter
Hello Tony,

Good example, sounds like it's going to be a useful application!

If you're using PopulateOnDemand for the parent nodes in the tree; the children will make the parent reissue a OnTreeNodePopulate on click.  You should check in your application if this indeed true under the OnTreeNodePopulate method which node is calling the event (hint: e.Node.Text).

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] gmail [dot] com
Coolite Toolkit 0.7 SVN (Professional Edition)
Microsoft .NET Framework 2.0
Microsoft ASP.NET Ajax 1.0

Last Login: Today @ 6:54:09 AM
Posts: 44,
Posted 8/6/2008 6:28:12 AM

Group: Coolite Early Adopter
Hi Timothy,

App is a rewrite of one that I did using ExtJS Extender controls to prove it's use, which went well. The ExtJs treeview handled all this quite nicely (with a small graphics issue) however I now have to use the ASP.NET 2 treeview to work with Coolite, which is far superior I must say, but just holding me up quite heavily from doing the real nuts and bolts of the app.

You are correct about the children making the parent reissue OnTreeNodePopulate. I was not sure why this was happening and still don't rightly see the point although I am sure there is a good reason. If the tree remained as it was I would let it slide for the time being, but sometimes nodes get collapsed when selecting a website/ftpsite and sometimes ftpsites nodes end up being null which I can only assume is the OnTreeNodePopulate doing something funny...

Thanks
Tony
« Prev Topic | Next Topic »
««12
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -8:00, Time now is 10:10pm