Hello All,
What is the proper way to add a TreeView, with child nodes, to a server
control?
I was getting two errors. The first was quickly resolved by setting the
SkipLinkText = String.Empty;
The second one, however, doesn't appear to be as straight forward. When you
envoke the RenderControl method of the TreeView it loses it's image
information.
Which means i cannot use any of the standard ImageSets and must define all
of my own plus signs and dashed lines?
cageman - 19 Mar 2007 20:20 GMT
Figured out my problem...
A TreeView needs to be added through the CreateChildControls()method,
this.controls.add(treeview), of a Server control. You cannot add it by
overriding the Render method and Calling TreeView.Render(output);
A gridview also needs to be added to your server control via
CreateChildControls(), this.Controls.Add(gridview), or row buttons will not
handle click events.
> Hello All,
>
[quoted text clipped - 9 lines]
> Which means i cannot use any of the standard ImageSets and must define all
> of my own plus signs and dashed lines?