Hi
Im trying to create docks and I need some help.
my code :
thats work fine
the part that i need help is this
each time the user move/remove/expand/collaps the dock i need to save it in the DB so in aDock_DockPositionChanged i need the radock id (i have the e.dockzonid and e.index for location)
and in aDock_Command i need the radock id and if the action is expand or collaps.
i cant get it from e or sender ,any other idea?
Thanks
Roiy
Im trying to create docks and I need some help.
my code :
RadDock aDock = ((IWidget)(auserControl)).GetWidget(); |
aDock.DockMode = DockMode.Docked; |
aDock.AutoPostBack = true; |
aDock.CommandsAutoPostBack = true; |
//Add closed command |
DockCloseCommand dCC = new DockCloseCommand(); |
dCC.AutoPostBack = true; |
aDock.Commands.Add(dCC); |
//Add DockExpandCollapseCommand |
DockExpandCollapseCommand dEC = new DockExpandCollapseCommand(); |
dEC.AutoPostBack = true; |
aDock.Commands.Add(dEC); |
aDock.DockPositionChanged += new DockPositionChangedEventHandler(aDock_DockPositionChanged); |
aDock.Command += new DockCommandEventHandler(aDock_Command); |
aDock.ID = widg.Id.ToString(); |
AsyncPostBackTrigger triger = new AsyncPostBackTrigger(); |
triger.ControlID = aDock.ID; |
triger.EventName = "DockPositionChanged"; |
UpdatePanel1.Triggers.Add(triger); |
switch (widg.ColumnNo) |
{ |
case 1: |
DockZoneLeft.Controls.AddAt(widg.OrderNo, aDock); |
break; |
case 2: |
DockZoneMid.Controls.AddAt(widg.OrderNo, aDock); |
break; |
case 3: |
DockZoneRight.Controls.AddAt(widg.OrderNo, aDock); |
break; |
} |
the part that i need help is this
void aDock_Command(object sender, DockCommandEventArgs e) |
{ |
} |
void aDock_DockPositionChanged(object sender, DockPositionChangedEventArgs e) |
{ |
} |
and in aDock_Command i need the radock id and if the action is expand or collaps.
i cant get it from e or sender ,any other idea?
Thanks
Roiy