473,320 Members | 1,955 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.

Treeview and Placeholder side-by-side in a View

Bob
I've got a MultiView with multiple Views.

In one View, I want to display a Treeview on the left side and controls
generated via a Placeholder control on the right side.

If I drag a treeview control into the view it is on the left side. Then I
drag a Placeholder control and it is positioned below the Treeview control.

Why is that?

Since the above didn't work, I drug a Panel into the View and set its
Horizontal Align property to Justified. Once again, the Treeview is on the
left side and the Placeholder is below it on the left side.

Why is that?

I tried dragging a second panel into the View and got absolute positioning
of the control, which I don't think is what I want. In the Source display,
the second panel shows as being in the View, but with absolute positioning,
I'm not sure it would only be displayed when the particular View is active.

Do I need to resort to an IFrame or something to get the desirec behavior?

Feb 6 '06 #1
2 2518
The placeholder is positioned below the treeview because treeview uses Table
html elements to render itself and by default table elements don't allow
other elements to be rendered beside them.
No you don't need to resort to iframes. A way to get arround this is to
create a table with two columns and place the treeview on the left column and
the placeholder on the right.
Hope this helps.

--
_________________________
Kostas Pantos [MCP]
http://kostas.pantos.name
"Bob" wrote:
I've got a MultiView with multiple Views.

In one View, I want to display a Treeview on the left side and controls
generated via a Placeholder control on the right side.

If I drag a treeview control into the view it is on the left side. Then I
drag a Placeholder control and it is positioned below the Treeview control.

Why is that?

Since the above didn't work, I drug a Panel into the View and set its
Horizontal Align property to Justified. Once again, the Treeview is on the
left side and the Placeholder is below it on the left side.

Why is that?

I tried dragging a second panel into the View and got absolute positioning
of the control, which I don't think is what I want. In the Source display,
the second panel shows as being in the View, but with absolute positioning,
I'm not sure it would only be displayed when the particular View is active.

Do I need to resort to an IFrame or something to get the desirec behavior?

Feb 6 '06 #2
Bob
Kostas,

Thanks, that should do it. I was hoping for a more ASP.NET-oriented way to
do it. I try to do as much as possible using the ASP.NET controls. I view
dropping into HTML to be the equivalent of dropping into Assembler while
writing in high level code; you're setting yourself up for trouble sometime
down the road.

Bob

"Konstantinos Pantos" wrote:
The placeholder is positioned below the treeview because treeview uses Table
html elements to render itself and by default table elements don't allow
other elements to be rendered beside them.
No you don't need to resort to iframes. A way to get arround this is to
create a table with two columns and place the treeview on the left column and
the placeholder on the right.
Hope this helps.

--
_________________________
Kostas Pantos [MCP]
http://kostas.pantos.name


Feb 6 '06 #3

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

Similar topics

2
by: Hai Nguyen | last post by:
Hi all I'm trying ing to create usercontrols dynamically and add them into a placeholder. During a postback i got the following error " Failed to load viewstate. The control tree into which...
4
by: blue | last post by:
I have a drop-down list, a radio button list and a submit button. I'm adding these controls to a table and I'm adding the table to a Placeholder. I'm adding it to the Placeholder because I don't...
0
by: shark | last post by:
I have a placeholder in a control that is in turn, used as a control in a placeholder in a form. I am getting a viewstate error so I believe I have to clear my placeholder before I load the...
0
by: Devinim SOLEN | last post by:
Hi; I try to apply stylesheet to treeview in Whidbey. It seems ok (applied) in design mode but when it run, seems didn't apply, why ? Here is the code as follows; <asp:content...
0
by: adolf garlic | last post by:
Currently we have an app (asp.net 1.1) that has a dynamic content client scripted treeview which will allow the display of reporting services reports in the right hand part of the screen. My...
2
by: damiensawyer | last post by:
Hello all, I'm wondering if someone can help me with an issue. I have a master page that has a treeview control on it (inside an ascx file). Also on the master page I have a content...
0
by: dkode | last post by:
Hello, I know this can be done, but it's beyond me at the moment, Here is my inheritance chain: class NavRole : UserControl { protected void AddSubmenu(string submenuFile); } class artist...
0
by: apenly | last post by:
Hi all- I'm trying to Render a TreeView in a custom control, but I'm receiving a NullReferenceException at runtime. If I put the TreeView on the page it works fine, but as soon as I try to...
7
by: Brad Baker | last post by:
I am trying to programmatically set a placeholder control in csharp which is nested inside a repeater control between <ItemTemplateand </ItemTemplate> tags, however I am running into problems. I've...
0
by: F | last post by:
Hi, The funniest part of the problem described here is that I am not new to ASP.NET, but honestly here I have no idea about what's going on. I have a GridView with a data source that just...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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

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.