Howdy all.
I've got a 'fun' situation. I have a vertical grown, image only menu on my left hand side, and a right side content area. The idea is that on the right, you'll see pertinent employee data, and the menu will pull up extra info as you wish to see it, through RadWindows. I'm using an OffsetElementID of my header on the right hand side, which (as I understand it) should mean that if I have set Top and Left at 0, my window should have a matching upper left hand corner as the header.
That's not what it's doing right now. I can't get it to respect Top at all. It'll go Left any way I tell it, but it won't go up further than it's initially appearing on the page. Here's my code, and a picture to hopefully illustrate what I mean.
I've also included my Javascript, which I got off these forums for how I'm opening and closing the windows. I tried programmatically setting them in there with oWindow.set_top(0); and oWindow.set_left(0);, but that didn't work.
Thanks for your help!
I've got a 'fun' situation. I have a vertical grown, image only menu on my left hand side, and a right side content area. The idea is that on the right, you'll see pertinent employee data, and the menu will pull up extra info as you wish to see it, through RadWindows. I'm using an OffsetElementID of my header on the right hand side, which (as I understand it) should mean that if I have set Top and Left at 0, my window should have a matching upper left hand corner as the header.
That's not what it's doing right now. I can't get it to respect Top at all. It'll go Left any way I tell it, but it won't go up further than it's initially appearing on the page. Here's my code, and a picture to hopefully illustrate what I mean.
I've also included my Javascript, which I got off these forums for how I'm opening and closing the windows. I tried programmatically setting them in there with oWindow.set_top(0); and oWindow.set_left(0);, but that didn't work.
Thanks for your help!
<telerik:RadMenu id="menuMain" ClientIDMode="Static" runat="server" flow="Vertical" OnClientItemClicked="MenuOpenWindow" Width="100%" BackColor="#37495D"> <Items> <telerik:RadMenuItem ImageUrl="../Images/button1.png" Value="EmpProj" /> </Items></telerik:RadMenu><telerik:RadWindow id="winProjList" runat="server" Top="0" Left="0" Style="z-index: 8000" EnableEmbeddedSkins="false" OffsetElementID="divEmpHeader" ShowContentDuringLoad="false" VisibleStatusbar="false" VisibleTitlebar="false" AutoSize="true"> <ContentTemplate> <div id="divProjListList" runat="server" style="width: 400px;"> <div>Projects</div> <div style="width: 400px"> <telerik:RadGrid ID="grdCheckAcctList" runat="server" AutoGenerateColumns="False" Skin="" EnableLinqExpressions="False" CellSpacing="0" EnableViewState="False"> <ClientSettings Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true" /> <MasterTableView DataKeyNames="KeyColumn" ShowHeader="true" HeaderStyle-HorizontalAlign="Center" EnableViewState="false"> <Columns> <telerik:GridBoundColumn DataField="Department" /> <telerik:GridBoundColumn DataField="Project" /> <telerik:GridBoundColumn DataField="Supervisor" /> </telerik:GridBoundColumn> </Columns> <HeaderStyle HorizontalAlign="Center" /> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu> </telerik:RadGrid> </div> </div> </ContentTemplate></telerik:RadWindow><telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script type="text/javascript"> //Global Variables var lastOpenedWindow; function pageLoad() { $addHandler(document, "click", onClickHandler); } function MasterMenuOpenWindow(sender, eventArgs) { var oWindow; //Closes the last window opened if (lastOpenedWindow) { lastOpenedWindow.close(); lastOpenedWindow = null; } if (eventArgs.get_item().get_value() == "EmpProj") { oWindow = $find("<%=winEmpProj.ClientID%>");
oWindow.set_top(0);
oWindow.set_left(0);
oWindow.show(); lastOpenedWindow = oWindow; return false; } } function onClickHandler(e) { var targedNodeName = e.target; if (lastOpenedWindow) { // If the RadWindow is clicked then do nothing ; if ($telerik.isMouseOverElementEx(lastOpenedWindow.get_popupElement(), e)) return; lastOpenedWindow.close(); lastOpenedWindow = null; } } </script></telerik:RadScriptBlock>