469,889 Members | 1,262 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,889 developers. It's quick & easy.

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 2157
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Srinivasa Raghavan | last post: by
1 post views Thread by Srinivasa Raghavan | last post: by
3 posts views Thread by musosdev | last post: by
reply views Thread by damiensawyer | last post: by
3 posts views Thread by Daves | last post: by
reply views Thread by mazdotnet | last post: by
reply views Thread by rockdale | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.