Private
Sub LivelinkTreeView(ByVal treeview As RadTreeView)
Dim rootNode As New RadTreeNode()
rootNode.Text = hdnFundName.Value
rootNode.Value = hdnFundObjectID.Value
rootNode.ImageUrl = "~\App_Themes\Image\main.png"
rootNode.Width = "25"
rootNode.Height = "25"
rootNode.Expanded = True
rootNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack
treeview.Nodes.Add(rootNode)
End Sub
Private Function CreateRadDock(ByVal c As Control, ByVal dockName As String, ByVal iCount As Integer) As RadDock
Dim docksCount As Integer = CurrentDockStates.Count
Dim dock As New RadDock()
dock.ID =
String.Format("RadDock" & iDockCount, iDockCount)
dock.Title =
String.Format(dockName)
dock.Font.Bold =
True
dock.UniqueName = Guid.NewGuid().ToString()
dock.Width = Unit.Percentage(100)
dock.Skin =
"Web20"
dock.OnClientInitialize = "OnClientInitialize"
dock.Attributes.Add("Style", "margin-top:10px;margin-left:10px")
dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.ExpandCollapse
dock.EnableDrag =
False
dock.EnableRoundedCorners = True
dock.EnableAnimation = True
dock.ContentContainer.Controls.Add(c)
Return dock
End Function
Private Sub CreateDockDocumentInformation()
LivelinkTreeView(rtvLivelink)
Dim dock As RadDock = CreateRadDock(Treeview1, "Document Information", icnt)
RadDockZone1.Controls.Add(dock)
iDockCount += 1
CreateSaveStateTrigger(dock)
LoadWidget(dock)
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
CreateDockDocumentInformation()
End If
End Sub
Private Sub LoadWidget(ByVal dock As RadDock)
If String.IsNullOrEmpty(dock.Tag) Then
Return
End If
Dim widget As Control = LoadControl(dock.Tag)
dock.ContentContainer.Controls.Add(widget)
End Sub
Private Sub CreateSaveStateTrigger(ByVal dock As RadDock)
dock.AutoPostBack = True
dock.CommandsAutoPostBack = True
Dim saveStateTrigger As New AsyncPostBackTrigger()
saveStateTrigger.ControlID = dock.ID
saveStateTrigger.EventName =
"DockPositionChanged"
UpdatePanel1.Triggers.Add(saveStateTrigger)
saveStateTrigger =
New AsyncPostBackTrigger()
saveStateTrigger.ControlID = dock.ID
saveStateTrigger.EventName =
"Command"
UpdatePanel1.Triggers.Add(saveStateTrigger)
End Sub
Is there any limitation on this on binding the treeview control on the dynamic raddock?
How can I set the RadTextBox disabled style using .css file? Somehow the style is not being recognized.
<telerik:RadTextBox ID="RadTextBox1" runat="server" Text="Johnson Grammer" Skin="Office2007">
<DisabledStyle CssClass="disableField" />
</telerik:RadTextBox>
My style sheet entries. I tried both but didn't work. What am i doing wrong?
.disableField .RadInput .riTextBox
{
background-color: #EFEFEF;
font-weight: bold;
}
.disableField1
{
background-color: #EFEFEF;
font-weight: bold;
}
I could achieve this by doing like this but I would like to use the.css so I can change at once.
<telerik:RadTextBox ID="RadTextBox1" runat="server" Text="Johnson Grammer" Skin="Office2007">
<DisabledStyle BackColor="#EFEFEF" BorderColor="Black" Font-Bold="True" />
</telerik:RadTextBox>
I found a style sheet example for Radcombobox from Telerik site which works great for RadComboBox. But was not able to get it work for text box.
http://www.telerik.com/help/aspnet-ajax/appearance-change-input-look-tutorial.html
Thanks in Advance.
