473,320 Members | 2,000 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

RenderControl and asp:TreeView

When doing a "callback" I normally call a webControl's RenderControl
method to get the html for that WebControl.

This has always worked great in the past, but it does not seem to
work with an asp:treeview control.
When I call MyTreeView.RenderControl, the html that I get is not what
I expected - it's as if all of the styles and properties that I set
on the treeview are not there. Is this a bug in the treeview
control?
How can I get the html of a treeview control during a client
callback?
I know I can use "load on demand" in the treeview, but I am trying to
reload the entire treeview when the user changes some criteria, then
clicks a button. I don't want to refresh the entire page. Maybe
there's a way to rebuild the entire treeview using load on demand?
I'd *really* like to use some form of RenderControl, if possible.
Thanks for your help!

Mar 29 '07 #1
1 2373
are you calling prerender?, at lot of the tree controls work is done in
prerender.

-- bruce (sqlwork.com)

GroupReader wrote:
When doing a "callback" I normally call a webControl's RenderControl
method to get the html for that WebControl.

This has always worked great in the past, but it does not seem to
work with an asp:treeview control.
When I call MyTreeView.RenderControl, the html that I get is not what
I expected - it's as if all of the styles and properties that I set
on the treeview are not there. Is this a bug in the treeview
control?
How can I get the html of a treeview control during a client
callback?
I know I can use "load on demand" in the treeview, but I am trying to
reload the entire treeview when the user changes some criteria, then
clicks a button. I don't want to refresh the entire page. Maybe
there's a way to rebuild the entire treeview using load on demand?
I'd *really* like to use some form of RenderControl, if possible.
Thanks for your help!
Mar 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Ed | last post by:
http://aspfaq.com/show.asp?id=2311 Sample: http://aspfaq.com/treeview This works perfectly on Windows IE 6.x and Mac IE. However, in order to be cross-platform compatible, I need to make...
2
by: Srinivasa Raghavan | last post by:
Hi I am using ASP Tree View Control to display data in hiearchy fashion.I am having a checkbox next to the TreeView Node.When user checks or unchecks the nodes and click a button i am putting...
1
by: Srinivasa Raghavan | last post by:
Hi All, I have some doubts on the Treeview control and Form Authentication 1) will Form Authentication work if cookies are disabled. 2) I have problem in the following code (TreeView...
3
by: musosdev | last post by:
Hi guys How do I get the new TreeView (asp2.0) to load something in an Iframe? I've setup a NaviagateUrl and set the Target property to the name of the Iframe, but it still tries to load a new...
0
by: damiensawyer | last post by:
I have an ASP:Treeview control <asp:TreeView Id="TreeView2" PathSeparator = "|" OnTreeNodePopulate="PopulateNode" ExpandDepth="1" runat="server" cssclass="TreeControl"...
3
by: Daves | last post by:
is there any documentation out there to find out if and then how I can work with TreeView on client side through jscript? For example I want to change title of nodes and remove without doing...
0
by: mazdotnet | last post by:
Hi, I'm using asp:TreeView to display information on our website. I like to add a LinkButton that fires an event when clicked to the TreeNode. TreeNode childNode = new TreeNode("Download...
0
by: rockdale | last post by:
HI, I need to re populate my treeview control based on user's selection. Seems like there is no treeview.clear/ reset method. So I remove the rootnode from my treeview as following TreeNode n...
0
by: Zuhaib Hyder | last post by:
how to select asp:TreeView nodes through skin??? (not working) or tell me any other way, through css etc.... selected node not working
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.