| var pageView = new Telerik.Web.UI.RadPageView(); mymultiPage.get_pageViews().add(pageView); pageView.get_element().innerHTML = function to create RadGrid(); |
<
telerik:RadScriptManager ID="RadScriptManager" runat="server">
</telerik:RadScriptManager>
<radW:RadWindowManager ID="RadWindowManagerDefineView" runat="server" RadControlsDir="~/Includes/RadControls"
Skin="Office2007" ClientCallBackFunction="CallBackFunction">
<Windows>
<radW:RadWindow ID="RadWindowDefineView" ReloadOnShow="true" Top="5px" Modal="true"
Behavior="Close" runat="server" NavigateUrl="ModifyFilters.aspx"
RadControlsDir="~/Includes/RadControls" Width="560px" Height="582px"></radW:RadWindow>
</Windows>
</radW:RadWindowManager>
<asp:UpdatePanel ID="testPanel" runat="server"><ContentTemplate><div id="divHeader"> <center> <table style="width: 95%"> <tr> <td> Age: </td> <td> <cc2:Filter ID="msAccountWasAge" runat="server" ListSize="8" PromptClass="FilterLabel" ImageClass="MSDDImg" ImagePath="../../Images/pullDown.JPG" ListBoxClass="MSDDListBox" TextBoxClass="MSDDTextBox" ZIndex="300" /> </td> <td> Country: </td> <td> <cc2:Filter ID="msCountry" runat="server" ListSize="9" PromptClass="FilterLabel" ImageClass="MSDDImg" ImagePath="../../Images/pullDown.JPG" ListBoxClass="MSDDListBoxCompare" TextBoxClass="MSDDTextBoxCompare" ZIndex="300" /> </td> <td> <asp:ImageButton ID="ImageButtonRefresh" Height="25px" Style="float: left" OnClientClick="displayWaitAndSetPanel();" Width="25px" runat="server" ImageUrl="../../Images/Refresh.png" /> <asp:ImageButton ID="ImageButtonExportExcel" runat="server" Height="25px" Width="25px" ImageAlign="Left" ImageUrl="../../Images/excel.jpg" Style="float: left" AlternateText="Export to Excel"> </asp:ImageButton> </td> </tr> <tr> <td colspan="6"> </td> </tr> </table> </center></div></ContentTemplate></asp:UpdatePanel><asp:Button ID="btnAddPanel" runat="server" CssClass="btnSmall" Text="Add Panel" /><asp:Label ID="lblShowWarning" runat="server" Visible="false" ForeColor="Red"></asp:Label><asp:Panel ID="pnlLayout" runat="server" Width="100%" Height="400px"> <telerik:RadDockLayout ID="RadDockLayout" runat="server" Skin="Office2007" StoreLayoutInViewState="true"> <telerik:RadDockZone ID="RadDockZone" Width="400px" Height="200px" MinWidth="800px" runat="server" Orientation="Horizontal"> </telerik:RadDockZone> </telerik:RadDockLayout></asp:Panel>function ShowModifyFilters(ID) { var oManager = GetRadWindowManager(); var oWnd = oManager.GetWindowByName("RadWindowDefineView"); oWnd.argument = ID; if (WindowUrl == null) WindowUrl = oWnd.GetUrl(); oWnd.SetUrl(WindowUrl + "?SavedPanelID=" + ID); oWnd.Show(); alert(WindowUrl + "?SavedPanelID=" + ID); }
<telerik:RadTextBox ID="UserEmailInput" runat="server" CausesValidation="True" ValidationGroup="UserInput" ToolTip="EnterEmail"> </telerik:RadTextBox><asp:RegularExpressionValidator ID="emailValidator" runat="server" Display="Dynamic" ErrorMessage="<br/> Please, enter valid e-mail address." ValidationExpression="^[\w\.\-]+@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*(\.[a-zA-Z]{2,3}){1,2}$" ControlToValidate="UserEmailInput"> </asp:RegularExpressionValidator> <asp:RequiredFieldValidator ID="Requiredfieldvalidator1" runat="server" Display="Dynamic" ControlToValidate="UserEmailInput" ErrorMessage="<br/>Please, enter an e-mail!"></asp:RequiredFieldValidator> <br /> <br /> <telerik:RadButton ID="UserReport" runat="server" Text="Run Report" OnClick="UserReport_Click"> </telerik:RadButton> </td>function pageLoad(sender, eventArgs) { if (!eventArgs.get_isPartialLoad()) { $find('<%= RadAjaxManager.GetCurrent(this).ClientID %>').ajaxRequest("InitialPageLoad"); }}protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e){ //To produce postback if (e.Argument.ToString() == "InitialPageLoad") { SetupWidgets(); dLoading.Visible = false; }}private void SetupWidgets(){ List<DockState> currentStates = CurrentDockStates.OrderBy(cs => cs.Index).ToList(); for (int i = 0; i < currentStates.Count; i++) { if (currentStates[i].Closed == false) { CustomRadDock dock = CustomCreateRadDockFromState(currentStates[i]); rdlPageDesign.Controls.Add(dock); CustomLoadWidget(dock); } }}<telerik:RadSplitter ID="rsDocumentsView" runat="server" Height="300" width="99%">
If I set it as a value rather than a percent, it sort of works, but we need dynamic sizing. I have also tried the various resize options and that has failed to work as well. The output shows as...
<div id="ctl00_ContentPlaceHolder1_RadDock58a5fa95adcefa45bea8805a81cfcd8ee6f9_C_ctrl58a5fa95adcefa45bea8805a81cfcd8ee6f9_rsDocumentsView" style="height: 300px; width: 118px;"><div style=""><table id="RAD_SPLITTER_ctl00_ContentPlaceHolder1_RadDock58a5fa95adcefa45bea8805a81cfcd8ee6f9_C_ctrl58a5fa95adcefa45bea8805a81cfcd8ee6f9_rsDocumentsView" class="RadSplitter RadSplitter_Default" cellpadding="0" cellspacing="0" style="width:1px;height:1px;border-left-width:1px;border-top-width:1px;">
so it comes as 118px. No matter what the browser width is, it is allways 118px.
I have also ensured that all the wrapping containers have all their widths set as well, to no avail.
I think my bosses think I am swinging the lead on this.
If you need any more information, please ask. I have provided as much as I can think of.
Thanks.
David.