Hello Telerik Team,
In my project I need to open a new page from source page. On the target page I need to access Page.PreviousPage property. This can be done just when you specify PostBackURL attribute on e.g. asp:button control.
I call openning target page from client side as:
<asp:Button ID="Button2" OnClientClick="OpenAttachmentWindow(); return false;" runat="server"></asp:Button>function OpenAttachmentWindow() { var wnd = $find("<%= AttachmentWindow.ClientID %>"); wnd.show(); }<telerik:RadWindowManager ID="RadWindowManager2" runat="server"> <Windows> <telerik:RadWindow runat="server" Width="560px" Height="440px" NavigateUrl="~/Pages/AttachmentWindow.aspx" ID="AttachmentWindow" Modal="true" ReloadOnShow="true" Animation="Fade" Title="ÄŒakajte"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager>

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