This is a migrated thread and some comments may be shown as answers.

[Solved] Portal Approach - Is this correct?

2 Answers 179 Views
Dock
This is a migrated thread and some comments may be shown as answers.
czone
Top achievements
Rank 1
czone asked on 19 May 2007, 03:34 PM

I'm building a portal and would like to use Prometheus.  My requirements include the following:

  • Dynamic portal page layout - 2 column, 3 column and other page layouts - I will load a different layout based on the page requested
  • Drag and drop of content within the page layout columns
  • Save the locations of the content blocks in a database

I think using the following approach will help me achieve what I need to do.

  • Use a RadDocLayout control as the primary container
  • Place RadDocZone controls inside the layout control, using a zone for each one of my columns or rows that I have on my page
  • Use the RadDoc for all my content objects

I have two questions.

  1. Does this approach seem correct?
  2. I can't seem to get the zone controls in a side by side (horizontal) configuration, I can only get them in a vertical (one on top of the other) configuration.  How can I get the zone controls to be configured to be side by side so I can use them as columns for my page layout?
  • In regards to my 2nd question, I looked at your portal example and you use tables to create the 3 column zone layout that I want. Is this the only way to do this or can I use Div tags or some other approach?

Thanks in advance for the help.

2 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 21 May 2007, 09:52 AM
Hello Dave,

The approach seems correct and actually, we designed RadDock to work mainly in similar scenarios. Did you check our online examples? This one could be of help to you:
http://www.telerik.com/demos/aspnet/prometheus/Dock/Examples/MyPortal/DefaultCS.aspx

Regarding the question #2: the RadDockZone controls are rendered as DIV elements, which are block elements and are automatically placed on a new line. You could override this behavior in several ways:
1) Set style="float:left" to the controls, just like the example above:
<telerik:raddockzone id="RadDockZone1" runat="server" width="45%" style="float:left;margin-right:15px;" />
<telerik:raddockzone id="RadDockZone2" runat="server" width="45%" style="float:left;" />

2) Put the RadDockZone controls in table cells on one table row, something like this:
<table>
<tr>
<td><telerik:raddockzone id="RadDockZone1" runat="server" /></td>
<td><telerik:raddockzone id="RadDockZone2" runat="server" /></td>
</tr>
</table>

I strongly recommend the upgrade to the latest version of RadDock "Prometheus", which will be available later today.

Regards,
Valeri Hristov (Senior Developer, MCSD)
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
czone
Top achievements
Rank 1
answered on 22 May 2007, 01:10 AM
This was very helpful, thanks for the support.  I'll download the new version of RadDoc when its ready!
Tags
Dock
Asked by
czone
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
czone
Top achievements
Rank 1
Share this question
or