CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/30/2007 8:12:40 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 128 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
johnsaxton
Asp.Net User
TreeView PopulateNode1/30/2007 8:12:40 PM

0/0

I am attempting to use a treeview on one of my webpages. I would like to populate the nodes without a postback. I have read ll of the posts that I can find out here regarding this topic. While I have learned a lot, none have helped or totally asnswered my question.

My main question is this:  Is the javascript to call TreeView_PopulateNode SUPPOSED to be generated automatically if I set the correct, and apparently secret, series of treeview properties? OR am I responsible for writing this code? If I am responsible can someone point me to a reference that describes what I need to do.

By the way,  I have experimented with TreeView settings EnableClientScript (true/false), PopulateNodesFromClient(true/false) AND I have a server side event handler for the TreeNodePopulate Event , but I don't seem to be getting the automatically generated javascript to call TreeView_PopulateNode. I have also set the node property of PopulateOnDemand to true when I create nodes. None of this has worked.

Hopefully someone can help me. 

Kind Regards

John  

 


John M. Saxton
Microsoft Certified Application Developer for .NET
CompTIA Security+ Certified
joteke
Asp.Net User
Re: TreeView PopulateNode1/30/2007 8:38:55 PM

0/0

Have you seen my article about the TreeView? http://aspalliance.com/732

It demonstrates the dynamic populating (and works for sure ;-) ). Are there differences in your approach compared to mine? If you have PopulateOnDemand and PopulateNodesFromClient set, scripts to do the populating within a callback are generated automatically.

Note: You can also try using TreeView with ASP.NET Ajax.

 


Thanks,

Teemu Keiski
Finland, EU
johnsaxton
Asp.Net User
Re: TreeView PopulateNode1/31/2007 1:08:58 AM

0/0

Thanks. I will take a look. I have read so many articles on the TreeView control I could probably write a book at this point. I am beginning to think that my installation of Visual Studio has been corrupted because only part of the callback functionality is being generated automatically. Despite the fact that I have added the server side event handler for TreeNodePopulate, set the TreeView.PopulateNodesFromClient = true, and set TreeNode.PopulteOnDemand = true, I do not see the correct function and function signature being inserted into each node's html when the Tree is generated at runtime.

I want to try out the AJAX stuff but I don't want to introduce yet another variable before I get this working. I have been roling my own AJAX for quite a while so I am looking forward to a more 'standardized' way of doing asynch calls.

 


John M. Saxton
Microsoft Certified Application Developer for .NET
CompTIA Security+ Certified
johnsaxton
Asp.Net User
Re: TreeView PopulateNode1/31/2007 12:47:06 PM

0/0

Thanks Teemu. I noticed in your sample code that the Treeview property ShowExpandCollapse was set to true. This property was false in my code. I changed it to true and ran the project. Just like magic the javascript to call TreeView_Populate was automatically generated. Thanks again.

 


John M. Saxton
Microsoft Certified Application Developer for .NET
CompTIA Security+ Certified
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Delphi 8.0范例入门与提高/范例入门与提高丛书 Authors: 丁英, Pages: 432, Published: 2005
Essential ASP .NET 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2007
Delphi 2005入门与提高/软件入门与提高丛书 Authors: 高小山, Pages: 586, Published: 2006

Web:
TreeView PopulateNode - ASP.NET Forums TreeView PopulateNode. Rate It (1). Last post 01-31-2007 7:47 AM by johnsaxton. 3 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Data in Treeview-control (Problem - need help) - ASP.NET Forums Web.UI.WebControls.TreeView.OnTreeNodePopulate(TreeNodeEventArgs e) +96. System. Web.UI.WebControls.TreeView.PopulateNode(TreeNode node) +81 ...
TreeView PopulateNode - ng.asp-net-forum ... TreeView PopulateNode, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net. master_pages_themes_and_navigation_controls, Date: 1/30/2007 ...
Display Hierarchical Data with TreeView in ASP.NET 2.0: ASP Alliance Teemu Keiski demonstrates how to utilize the new TreeView control in ASP. ... Private Sub PopulateNodes(ByVal dt As DataTable, _ ByVal nodes As ...
TreeView Dynamic XML Binding Mar 25, 2008 ... System.Web.UI.WebControls.TreeView.DataBindNode(TreeNode node) +126. System.Web. UI.WebControls.TreeView.PopulateNode(TreeNode node) +27 ...
TreeView.TreeNodePopulate Event (System.Web.UI.WebControls) Dim instance As TreeView Dim handler As TreeNodeEventHandler AddHandler instance . ... SqlClient" %>




Search This Site:










security issue when migrating from asp.net 1.1 to asp.net 2.0

membershipstatus

bool networkcredential.authenticate("usera", "pass", "domainx.local");

requested registry access is not allowed.

simple security problem

virtual directory, iis.msc

login control with master page

email current page sends login screen

httpwebrequest and posting data

spoof email about asp net security

hi for problem login page

my ie6.0 will not save my windows login....

changing membershipprovider connection string?

windows authentication- only works locally

create user control

medium trust problem with sub applications

asp.net application and sql server why windows authentication?

suggestions on implementing multiple roles based on user departments

problem when a user logs in as two different users from same computer one after the other

writing a function to perform username / password validation

session timeout not working

membershipuser.isonline not work after running formsauthentication.signout()

decryption algorythm for md5 hash ??

form authentication - images/styles does not load on the login page!!

profile property collection

overriding authorization/authentication (forms) on 1 page

login control issue...

check if a user is logged on

problem with accepting (self-signed?) certificate

login control no regex

  Privacy | Contact Us
All Times Are GMT