Hi
I have a function that creates,populates then returns a RadDoc. This function runs an unknow quantity of times depending on results returns from my db.
This returned dock is then added to a specific dock zone base on data in the database.
ie
I have a function that creates,populates then returns a RadDoc. This function runs an unknow quantity of times depending on results returns from my db.
This returned dock is then added to a specific dock zone base on data in the database.
ie
For Each dashitemrow As Data.DataRowView In dsDashItems.Select(DataSourceSelectArguments.Empty) Dim dock As RadDock = CreateRadDock(dashitemrow("Itemtype"), dashitemrow("Itemid")) Select Case dashitemrow("dockindex") Case 11 RadDockZone11.Controls.Add(dock) Case 12 RadDockZone12.Controls.Add(dock) Case 21 RadDockZone21.Controls.Add(dock) End Select NextFor varying reason I want to manage the position of the docks myself and not use the dockstate.
My question is, how for these dynamically created contols can I detect / write the DockpositionChanged event so i can then retrieve the .dockzoneID and .Index and then store them in my database?
I can do this with a statically created dock, but I am not sure how this is implemented dynamically.
I think I need something like:
detect a DockpositionChanged event in a RadDock within the RadDockLayout
determine which Dock has fired the event
get this dock's .dockzoneID, .Index and it's DB reference (which I could hide somewhere)
call my DB_SP with .dockzoneid, .index and id to complete reorder
end event
Thanks
Johnathan