Hi All,
Have a master page with RadMenu.
While clicking a menu, a page opens in a popup. For this I have should RadWindowManager.
Works fine.
But each page is of different width. So I used the AutoSize="True", which I found in the telerik demos. But it is not working.
This the ascx page I am using. Have called the new page through javascript.
It Opens in a window with scroll in both. Need to fit the size of the page.
Have sent a screen shot also.
Is there any possible way to rectify this.
Thank you
-Anto
Have a master page with RadMenu.
While clicking a menu, a page opens in a popup. For this I have should RadWindowManager.
Works fine.
But each page is of different width. So I used the AutoSize="True", which I found in the telerik demos. But it is not working.
<%@ Control Language="C#" AutoEventWireup="True" CodeBehind="HeaderV2.ascx.cs" Inherits="ProductAdmin.Header" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1"> |
<script type="text/javascript"> |
function rmnuPageClientClicking(sender, eventArgs) { |
var item = eventArgs.get_item(); |
var navigateUrl = item.get_value(); |
if (navigateUrl && navigateUrl != "#") { |
var wnd = window.radopen(navigateUrl, null); |
return false; |
} |
} |
// wnd.setSize(515, 345); |
</script> |
</telerik:RadScriptBlock> |
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
<tbody> |
<tr> |
<td id="header"> |
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
<tbody> |
<tr> |
<td style="width: 100%;" valign="top"> |
<table cellpadding="0" cellspacing="0"> |
<tr> |
<td> |
<telerik:RadMenu runat="server" ID="rmnuProducts" DataTextField="ProductName" DataFieldID="ProductID" |
DataFieldParentID="ParentID" DataValueField="ProductID" Skin="Vista" OnItemClick="rmnuProducts_ItemClick"> |
</telerik:RadMenu> |
</td> |
<td> |
<telerik:RadMenu Width="100%" runat="server" ID="rmnuPage" DataTextField="PseudoName" |
DataFieldID="UID" DataFieldParentID="ParentID" |
DataValueField="PageNavigateURL" |
OnClientItemClicking="rmnuPageClientClicking" |
CollapseAnimation-Type="OutSine" Skin="Vista" |
EnableAutoScroll="true"> |
</telerik:RadMenu> |
<%--OnItemClick="rmnuPage_ItemClick"--%> |
<%--DataNavigateUrlField="PageNavigateURL"--%> |
<img visible="false" alt="Products" id="productLogo" runat="server" /> |
</td> |
<td> |
<telerik:RadMenu runat="server" ID="RadMenu1" Skin="Vista" OnItemClick="rmnuProducts_ItemClick" Width="100%"> |
<Items> |
<telerik:RadMenuItem Text="Home" NavigateUrl="../Home/DefaultCS.aspx"> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem Text="Log Out" NavigateUrl="../Admin/LoginCS.aspx"> |
</telerik:RadMenuItem> |
</Items> |
</telerik:RadMenu> |
</td> |
</tr> |
</table> |
</td> |
<%-- <td align="right"> |
<table border="1" cellpadding="0" cellspacing="0"> |
<tbody> |
<tr> |
<td> |
</td> |
<td class="myArea" align="left"> |
<%--| <a href="../Home/DefaultCS.aspx" class="myAreaLink">Home</a>|<a href="../Admin/LoginCS.aspx" |
class="myAreaLink">Logout</a>--%> |
<%--</td> |
<td id="colorpicker" class="welcome" style="border-left: 2px solid rgb(221, 221, 221); |
padding-right: 5px;" nowrap="nowrap" valign="top"> |
</td> |
</tr> |
</tbody> |
</table> |
</td>--%> |
</tr> |
<tr> |
<td> |
<telerik:RadToolBar runat="server" ID="RTBproducts" OnButtonClick="RTBproducts_ButtonClick" Skin="Office2007" Width="100%"> |
<Items> |
<telerik:RadToolBarButton Text="Employee Master" ImagePosition="AboveText" ImageUrl="../iSmart/images/users2.gif"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Employee" IsSeparator="true"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Leave Master" ImagePosition="AboveText" ImageUrl= "../iSmart/images/attend.gif"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Leave" IsSeparator="true"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Attendance" ImagePosition="AboveText" ImageUrl= "../iSmart/images/atendance.gif"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Attendan" IsSeparator="true"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="CTC Master" ImagePosition="AboveText" ImageUrl= "../iSmart/images/ctc.gif"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="CTC" IsSeparator="true"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Salary Process" ImagePosition="AboveText" ImageUrl= "../iSmart/images/dolr1.gif"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Salary" IsSeparator="true"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Salary Slip" ImagePosition="AboveText" ImageUrl="../iSmart/images/salslipnew.gif"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="SalarySlip" IsSeparator="true"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Exit" ImagePosition="AboveText" ImageUrl="../iSmart/images/exitnew.gif"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton IsSeparator="true"> |
</telerik:RadToolBarButton> |
</Items> |
</telerik:RadToolBar> |
</td> |
</tr> |
<%-- <tr> |
<td style="padding: 10px 5px 0px 10px;" align="right" nowrap="nowrap" valign="top"> |
<table border="0" cellpadding="0" cellspacing="0"> |
<tbody> |
<tr> |
<td class="search" >--%> |
<%--<telerik:RadTextBox EnableEmbeddedSkins="false" ID="RTBSearch" TabIndex="1" runat="server" |
MaxLength="20" > |
</telerik:RadTextBox>--%> |
<%--</td><td>--%> |
<%--<asp:Button ID="BtnSearch" runat="server" Text="Search" CssClass="button"/>--%> |
<%--</td> |
</tr> |
</tbody> |
</table> |
</td> |
</tr>--%> |
<%--<tr> |
<td colspan="2" align="left"> |
</td> |
</tr>--%> |
<tr> |
<td> |
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
<tbody> |
<tr> |
<td id="subtabs" width="100%"> |
</td> |
</tr> |
<tr> |
<td colspan="4" class="lastView" nowrap="nowrap"> |
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
<tbody> |
<tr> |
<td align="left"> |
<asp:Label ID="lblPage" runat="server" Text=""></asp:Label> |
</td> |
<td align="right"> |
<b style="white-space: nowrap;">Welcome </b> |
<asp:Label ID="lblWelcomeBy" runat="server" Text="None"></asp:Label> |
</td> |
<td align="right"> |
<b style="white-space: nowrap;">Last Viewed: </b> |
<asp:Label ID="lblLastViewed" runat="server" Text="None"></asp:Label> |
</td> |
</tr> |
</tbody> |
</table> |
</td> |
</tr> |
</tbody> |
</table> |
<telerik:RadWindowManager ID="RadWindowManager" ReloadOnShow="true" VisibleOnPageLoad="true" Animation="Slide" |
AutoSize="true" ShowContentDuringLoad="false" runat="server" Skin="Vista" |
VisibleStatusbar="false"> |
<Windows> |
<%-- <telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Width="400px" |
Height="400px" Title="Telerik RadWindow" Behaviors="Default"> |
</telerik:RadWindow>--%> |
</Windows> |
</telerik:RadWindowManager> |
<telerik:RadAjaxManager ID="ramTemp" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="RTBproducts"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadWindowManager" LoadingPanelID="LoadingPanel1"/> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="rmnuPage"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadWindowManager" LoadingPanelID="LoadingPanel1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
</td> |
</tr> |
</tbody> |
</table> |
</td> |
</tr> |
</tbody> |
</table> |
This the ascx page I am using. Have called the new page through javascript.
It Opens in a window with scroll in both. Need to fit the size of the page.
Have sent a screen shot also.
Is there any possible way to rectify this.
Thank you
-Anto