473,802 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Rend erControl, 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 2406
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.Rend erControl, 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
3326
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 this work on Mac Safari and Mozilla Firefox. Could someone point out how to fix this code to make it compatible with those aforementioned browsers?
2
2426
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 that count in a stringcollection which is in viewstate.The count is wrong after certain checks and click of the button.can any one explain what could be wrong.
1
2177
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 Control with checkbox)
3
3276
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 window?! Cheers Dan
0
2368
by: damiensawyer | last post by:
I have an ASP:Treeview control <asp:TreeView Id="TreeView2" PathSeparator = "|" OnTreeNodePopulate="PopulateNode" ExpandDepth="1" runat="server" cssclass="TreeControl" ExpandImageUrl="~/images/bullets/right.gif" CollapseImageUrl="~/images/bullets/down.gif"
3
1509
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 postback. MS doesn't seem to have any official documentation on this. And please notice I'm not refering to IE TreeView control but asp.net 2.0's TreeView!
0
2060
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 file #1"); masterNode.ChildNodes.Add(childNode);
0
3037
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 = tvSchedule.FindNode("-1"); if(n!=null){ myTreeView.Nodes.Remove(n); }
0
960
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
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10538
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10305
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9115
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.