| <telerik:RadDockLayout runat="server" ID="RadDockLayout1" OnLoadDockLayout="RadDockLayout1_LoadDockLayout" onsavedocklayout="RadDockLayout1_SaveDockLayout" storelayoutinviewstate="false"> |
| <div class="signature"> |
| <asp:Panel ID="pnlPreview" runat="server" CssClass="zones"></asp:Panel> |
| <br /><br /><asp:Button ID="btnSave" runat="server" Text="Save Layout" /> |
| </div> |
| <div class="preview"> |
| <asp:Repeater ID="rptContentType" runat="server" OnItemDataBound="rptContentType_OnItemDataBound"> |
| <HeaderTemplate><ul id="contentlibrary"></HeaderTemplate> |
| <ItemTemplate> |
| <li> |
| <h2> |
| <span class="title"><%#DataBinder.Eval(Container.DataItem,"Title") %></span> |
| <asp:Image ID="imgIcon" runat="server" CssClass="icon" /></h2> |
| <telerik:RadDockZone id="radDockZone" runat="server" Height="150"></telerik:RadDockZone> |
| <asp:Repeater ID="rptContentLibrary" runat="server" OnItemDataBound="rptContentLibrary_OnItemDataBound"></asp:Repeater> |
| </li> |
| </ItemTemplate> |
| <FooterTemplate></ul></FooterTemplate> |
| </asp:Repeater> |
| </div> |
| </telerik:RadDockLayout> |
| protected void RadDockLayout1_LoadDockLayout(object sender, Telerik.Web.UI.DockLayoutEventArgs e) |
| { |
| HttpCookie positionsCookie = Request.Cookies[Request["id"] + "CompanyEmailLayout"]; |
| if (!Object.Equals(positionsCookie, null)) |
| { |
| string serializedPositionsAndIndices = positionsCookie.Value; |
| if (!string.IsNullOrEmpty(serializedPositionsAndIndices)) |
| { |
| JavaScriptSerializer serializer = new JavaScriptSerializer(); |
| string[] positionsAndIndices = serializer.Deserialize<string[]>(serializedPositionsAndIndices); |
| e.Positions = serializer.Deserialize<Dictionary<string, string>>(positionsAndIndices[0]); |
| e.Indices = serializer.Deserialize<Dictionary<string, int>>(positionsAndIndices[1]); |
| } |
| } |
| } |
| protected void RadDockLayout1_SaveDockLayout(object sender, Telerik.Web.UI.DockLayoutEventArgs e) |
| { |
| JavaScriptSerializer serializer = new JavaScriptSerializer(); |
| string serializedPositions = serializer.Serialize(e.Positions); |
| string serializedIndices = serializer.Serialize(e.Indices); |
| HttpCookie positionsCookie = new HttpCookie(Request["id"] + "CompanyEmailLayout", |
| serializer.Serialize(new string[] { serializedPositions, serializedIndices })); |
| //Ensure that the cookie will not expire soon |
| positionsCookie.Expires = DateTime.Now.AddYears(1); |
| Response.Cookies.Add(positionsCookie); |
| if (IsPostBack) |
| { |
| //my codes |
| } |
| } |
Hi!
I have a multiview with a menu. When i click a menu item another view get's selectedI have a fileexplorer in that view. But somehow i get strange runtime errors. the following line is made yellow with the error null or not an object:
a.set_dataSource
(b.data);
If its on the first view everything is working fine.
Regards,
Marlou
Hello,
I'm trying to use a RadMenu version 2008.3.1314 on a RadCalendar as a context menu. What I'd like is for the menu to appear on mouse over of any day on the calendar, or on left click of a calendar day. I have the mouseover working fine, but the left click does not show the radmenu. I have verified that the RadMenu.ShowAt(x, y) is being hit in my client side code, but for some reason the menu does not appear. I would appreciate any help on this.
Thanks,
Dale