Hi,
I'm dynamically creating floating gadgets from Docks and almost everything is working as desired. I noticed that when I click the header of a floating dock, the width of the dock grows by exactly 5px. Strange, as I have no javascript tied to the event... I do have some custom javascript that I'm using for saving the X,Y cooridnates of the Dock after moving from Client to Server Side, but even with that disabled, the behavior persists. My code is as follows:
I'm dynamically creating floating gadgets from Docks and almost everything is working as desired. I noticed that when I click the header of a floating dock, the width of the dock grows by exactly 5px. Strange, as I have no javascript tied to the event... I do have some custom javascript that I'm using for saving the X,Y cooridnates of the Dock after moving from Client to Server Side, but even with that disabled, the behavior persists. My code is as follows:
Protected Sub ReturnUserGadgets(byval user as string) |
Dim ds As New DataSet |
ds = odata.ReturnDS("sp_GadgetLoadByUser", "@GadgetUser", user) |
Dim i, cnt As Integer |
cnt = ds.Tables("Generic").Rows.Count |
For i = 0 To cnt - 1 |
Dim dock As New RadDock() |
Dim widget As New UserControl |
widget = LoadControl(ds.Tables("Generic").Rows(i).Item("GadgetContent")) |
With dock |
.ID = user & "_" & ds.Tables("Generic").Rows(i).Item("GadgetName") |
.Title = ds.Tables("Generic").Rows(i).Item("GadgetName") |
.Skin = "Office2007" |
.UniqueName = Guid.NewGuid().ToString() |
.Width = CInt(ds.Tables("Generic").Rows(i).Item("GadgetWidth")) |
.Height = CInt(ds.Tables("Generic").Rows(i).Item("GadgetHeight")) |
.Left = CInt(ds.Tables("Generic").Rows(i).Item("GadgetX")) |
.Top = CInt(ds.Tables("Generic").Rows(i).Item("GadgetY")) |
.Resizable = False |
.Pinned = False |
.DockMode = DockMode.Floating |
'.OnClientDragEnd = "Moved" |
'.OnClientDragStart = "OnClientDragStart" |
.ContentContainer.Controls.Add(widget) |
End With |
RadDockLayout1.Controls.Add(dock) |
Next i |
ds.Clear() |
ds.Dispose() |
ds = Nothing |
End Sub |