I have a RadGrid that shows all the docks that have been closed. It is updated asynchronously from a DockCloseCommand. I want to be able to add records from that grid back as visible docks without sending the markup for the entire RadDockLayout or RadDockZone. I plan to bind data to my docks client-side, and updating the RadDockLayout or RadDockZone will overwrite the data.
I tried to add an ajax setting for the RadGrid that holds the closed docks as the updated control to the RadDock it is updating, but it doesn't seem to be working (1st snippet below).
Relevant code snippets:
Page.Load event:
Thanks in advance!
I tried to add an ajax setting for the RadGrid that holds the closed docks as the updated control to the RadDock it is updating, but it doesn't seem to be working (1st snippet below).
Relevant code snippets:
Private Sub rgAvailableDocks_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles rgAvailableDocks.DataBound For Each item As GridDataItem In rgAvailableDocks.Items Dim addlnkbtn As LinkButton = item.FindControl("lnkbtnAddDock") If addlnkbtn IsNot Nothing Then Dim DockUniqueName As String = DirectCast(item.DataItem, DataRowView).Row.Field(Of String)("DockUniqueName") 'UniqueNameToDock(DockUniqueName) => RadDock I want to update (make visible) RadAjaxManager1.AjaxSettings.AddAjaxSetting(addlnkbtn, UniqueNameToDock(DockUniqueName)) End If NextEnd SubPage.Load event:
' Each of these RadGrid objects are inside a RadDockFor Each Grid As RadGrid In Grids RadAjaxManager1.AjaxSettings.AddAjaxSetting(Grid, Grid)Next' A postback on a Dock should update the lblMessage (Label), the Panel that shows the' closed/available docks, and the header the dashboard headerFor Each Dock As RadDock In Docks RadAjaxManager1.AjaxSettings.AddAjaxSetting(Dock, lblMessage) RadAjaxManager1.AjaxSettings.AddAjaxSetting(Dock, pnlAvailableDocks, RadAjaxLoadingPanel1) RadAjaxManager1.AjaxSettings.AddAjaxSetting(Dock, pnlDashboardHeader, RadAjaxLoadingPanel1)NextFor Each Zone As RadDockZone In Zones RadAjaxManager1.AjaxSettings.AddAjaxSetting(Zone, lblMessage, RadAjaxLoadingPanel1)NextRadAjaxManager1.AjaxSettings.AddAjaxSetting(rgAvailableDocks, pnlAvailableDocks, RadAjaxLoadingPanel1)Thanks in advance!