hi all:
I added dock dynamically to the three zones.I set up different skin for each Zone. After user log back in and reloaded the docks which have been saved, the skin setting doesn't work. how could I fix this issue?
what I need is that every dock in the same zone have the same color. I also wonder how could I set up each dock has it own title bar color?
Thanks
Helena
I added dock dynamically to the three zones.I set up different skin for each Zone. After user log back in and reloaded the docks which have been saved, the skin setting doesn't work. how could I fix this issue?
what I need is that every dock in the same zone have the same color. I also wonder how could I set up each dock has it own title bar color?
Thanks
Helena
<telerik:RadDockLayout runat="server" ID="RadDockLayout1" |
EnableViewState="true"> |
<table style="width:100%" border="0" > |
<tr > |
<td style="width:30%"> |
<telerik:RadDockZone runat="server" ID="RadDockZone1" Height="100%" |
FitDocks="true" Width="100%" MinHeight="0" BorderWidth="0" Orientation="Vertical" Skin="Outlook"> |
</telerik:RadDockZone> |
</td> |
<td style="width:30%" > |
<telerik:RadDockZone runat="server" ID="RadDockZone2" Height="100%" |
Width="100%" |
Style="_height:100%;border-color:lightgray;float: right; margin-right: 0px" |
Orientation="Vertical" FitDocks="true" Skin="WebBlue"> |
</telerik:RadDockZone> |
</td> |
<td style="width:30%"> |
<telerik:RadDockZone runat="server" ID="RadDockZone3" Height="100%" |
Width="100%" Style="_height:100%;border-color:lightgray;float: right; margin-right: 0px" |
Orientation="Vertical" FitDocks="true" Skin="Vista"> |
</telerik:RadDockZone> |
</td> |
</tr> |
</table> |
vb.net codes: |
Private Sub CreateDefaultRadDock() |
Dim index As Integer |
Dim DockList As New ArrayList() |
Dim intCount As Integer = 0 |
Dim intReminder As Integer |
Dim dock As RadDock |
If Not Me.chkWidgetList.Items Is Nothing Then |
intCount = Me.chkWidgetList.Items.Count |
End If |
For index = 0 To intCount - 1 |
dock = CreateRadDock(chkWidgetList.Items(index).Text) |
intReminder = index Mod 3 |
Select Case intReminder |
Case 0 |
RadDockZone1.Controls.Add(dock) |
dock.Skin = "Web20" |
Case 1 |
RadDockZone2.Controls.Add(dock) |
dock.Skin = "Vista" |
Case 2 |
RadDockZone3.Controls.Add(dock) |
dock.Skin = "Outlook" |
End Select |
Me.chkWidgetList.Items(index).Selected = True |
'We want to save the dock state every time a dock is moved. |
CreateSaveStateTrigger(dock) |
'Load the selected widget |
dock.Tag = WidgetFolder + "/" + chkWidgetList.Items(index).Value |
LoadWidget(dock) |
Next index |
Me.btnAdd.Enabled = False |
Me.btnReset.Enabled = False |
'don't need to reload Dock |
isNeedReload = False |
End Sub |