Hello,
My code running since long time through various version is totally broken by Q3.2009 version.
Main problem is an exception in RadWebControl.LoadPostData: Invalid Json primitive.
Something has been changed in the way RadDock save its data, i am using a code common from forum to save the Dock position, something like this:
and
Second problem is that the grid I was installing in a dock to take its full width seems now greater that the available space and it generate scrollers ! Very ugly !!!
The code which was working without scrollers
Thanks for urgent help.
CS
My code running since long time through various version is totally broken by Q3.2009 version.
Main problem is an exception in RadWebControl.LoadPostData: Invalid Json primitive.
Something has been changed in the way RadDock save its data, i am using a code common from forum to save the Dock position, something like this:
| /// Called by DockLayout just after Init |
| protected void RadDockLayout1_LoadDockLayout(object sender, DockLayoutEventArgs e) |
| { foreach (DockState state in CurrentDockStates) |
| { |
| e.Positions[state.UniqueName] = state.DockZoneID; |
| e.Indices[state.UniqueName] = state.Index; |
| } |
| } |
and
| /// Called by DockLayout just after PreRender |
| protected void RadDockLayout1_SaveDockLayout(object sender, DockLayoutEventArgs e) |
| { |
| //Save the dock state in the session. This will enable us |
| // to recreate the dock in the next Page_Init. |
| List<DockState> lst = RadDockLayout1.GetRegisteredDocksState(); |
| CurrentDockStates = lst; |
| } |
Second problem is that the grid I was installing in a dock to take its full width seems now greater that the available space and it generate scrollers ! Very ugly !!!
The code which was working without scrollers
| <telerik:RadDockLayout runat="server" ID="RadDockLayout1"> |
| <telerik:RadDock ID="GridDock" Title="SELECTED" Top="150px" Left="70%" |
| style=" margin-left:auto; margin-right:auto; min-width:305px;min-height:200px;" DefaultCommands='PinUnpin' Pinned="false" DockMode="Floating" |
| runat="server" > |
| <Commands> |
| <telerik:DockPinUnpinCommand AutoPostBack="true" /> |
| </Commands> |
| <ContentTemplate> |
| <telerik:RadGrid ID="RadGrid2" runat="server" GridLines="None" AutoGenerateColumns="False" style=" border-left-width:0; border-right-width:0; border-top-width:0; border-bottom-width:1; border-bottom-style: solid; width:303px;min-height:200px;" > |
| <MasterTableView> |
| <ExpandCollapseColumn Visible="False" Resizable="False"> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <RowIndicatorColumn Visible="False"> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Name" HeaderText="NAME" |
| ItemStyle-Width='200px' UniqueName="Name"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Parameter" HeaderText="PARAMETER" |
| ItemStyle-Width='200px' UniqueName="Parameter"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </ContentTemplate> |
| </telerik:RadDock> |
| </telerik:RadDockLayout> |
Thanks for urgent help.
CS