Hi HL,
You are not attaching the event handlers to the respective client-side events in the right way. The following code shows how to attach client-side event handlers:
Private
Function
CreateRadDock(
ByVal
strTitle
As
String
)
As
RadDock
Dim
docksCount
As
Integer
= CurrentDockStates.Count
Dim
dock
As
New
RadDock()
dock.DockMode = DockMode.Docked
dock.UniqueName = Guid.NewGuid().ToString()
dock.ID =
String
.Format(
"RadDock{0}"
, dock.UniqueName)
dock.Title = strTitle
dock.EnableAnimation =
True
dock.Text =
String
.Format(
"Added at {0}"
, DateTime.Now)
dock.Width = Unit.Pixel(100)
dock.BorderWidth = Unit.Pixel(2)
dock.BorderColor = Color.LightGray
''Attach event handlers
dock.OnClientDragStart =
"OnClientDragStart"
dock.OnClientDragEnd =
"OnClientDragEnd"
'dock.Attributes.Add("onclientdragstart", "javascript:OnClientDragStart();")
'dock.Attributes.Add("onclientdragend", "javascript:OnClientDragEnd();")
dock.Commands.Add(
New
DockCloseCommand())
dock.Commands.Add(
New
DockExpandCollapseCommand())
dock.CommandsAutoPostBack =
True
Return
dock
End
Function
Greetings,
Pero
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.