or
| Protected Sub RadScheduler1_AppointmentDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles RadScheduler1.AppointmentDataBound |
| Dim strFarg As String = "" |
| strFarg = e.Appointment.DataItem("resurs_farg").ToString() |
| e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml(strFarg) |
| e.Appointment.BorderColor = Color.Black |
| e.Appointment.BorderWidth = Unit.Pixel(1) |
| End Sub |

| CurrentDockStates = RadDockLayout1.GetRegisteredDocksState(); |
| Session["CurrentDockStates"] = CurrentDockStates; |
Then how can use this session stored index in javascript function to set dock position at the correct position.?
I feel this will save my postback.
Please treat this as urgent and reply.
Regards,
Snehal

| <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server"> |
| <asp:Panel runat="server" id="RequestFormPanel" BackColor="Green" > |
| <asp:Panel runat="server" ID="requestPanel" CssClass="FormPanel" BackColor="Red" > |
| </asp:Panel> |
| <telerik:RadDock runat="server" ID="IRItemListDock" Title="Информационные ресурсы" EnableAnimation="true" Visible="false" DefaultCommands = "ExpandCollapse" > |
| <ContentTemplate> |
| <uc2:IRItemList ID="IRItemList1" runat="server" /> |
| </ContentTemplate> |
| </telerik:RadDock> |
| </asp:Panel> |
| </asp:Content> |
| function MoveDock(DockId, PanelId) |
| { |
| var currentDock = $find(DockId.id); |
| if ( currentDock == null ) { return; } |
| obj = document.getElementById(PanelId.id); |
| var x = 0; |
| var y = 0; |
| while (obj != null) |
| { |
| x += obj.offsetLeft; |
| y += obj.offsetTop; |
| } |
| currentDock.set_left(x); |
| currentDock.set_top(y); |
| } |
| Page.RegisterStartupScript("Startup", "<script language=JavaScript>MoveDock(" + IRItemListDock.ClientID + "," + requestPanel.ClientID + ");</script>"); |