[WebMethod]
public bool DoServerSideStuff(SchedulerInfo schedulerInfo, AppointmentData appointmentData)
I have a tabstrip and a multipage view that are dynamically populated. This works fine when scrollChildren is by default set to false, the tabstrip wraps (it shows as two rows) and fits in side of the table and divs that contain it (as this is content page for a master page). When I change the mode to scroll children as I only want one row of tabs, that are scrollable, the tabstrip shows up as longer than the parent table and divs, and the scroll bar is off the page.
Any solutions?
Below is the sample code. The master page it is in is just the standard default masterpage.
Thanks!
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="WebForm1.aspx.vb" Inherits="_3POC.WebForm1" %> <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> <link href="Styles/styles.css" rel="stylesheet" type="text/css" /> <!--[if lt IE 7]> <style type="text/css">@import "ie6.css";</style><![endif]--> </asp:Content> <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent" > <table><tr> <td style="vertical-align:top;"> <telerik:RadDockZone ID="RadDockZone2" BorderStyle="None" runat="server" Orientation="Vertical" Width="100%" height="100%" MinWidth="50px" minHeight="100px" FitDocks="False" Skin="Office2007" HighlightedCssClass="dockzone"> <telerik:RadDock ID="RadDock1" runat="server" Title="Tools" Width="275px" EnableAnimation="true" EnableRoundedCorners="true" Resizable="true" Skin="Office2007"> <ContentTemplate> <telerik:RadPanelBar runat="server" ID="RadPanelBar1" > <CollapseAnimation Type="OutQuart" Duration="200"></CollapseAnimation> <Items> <telerik:RadPanelItem Text="Patient Info" Expanded="True"> <ContentTemplate> MRN: 1234s <br /> Patient Name: Eric Dalnas <br /> Patient age: 34 <br /> </ContentTemplate> </telerik:RadPanelItem> <telerik:RadPanelItem Text="Notes"> <Items> <telerik:RadPanelItem Text="My Notes"></telerik:RadPanelItem> <telerik:RadPanelItem Text="Notes List"></telerik:RadPanelItem> <telerik:RadPanelItem Text="Shared Notes"></telerik:RadPanelItem> <telerik:RadPanelItem Text="Archive"></telerik:RadPanelItem> </Items> </telerik:RadPanelItem> <telerik:RadPanelItem Text="Future Use 1"> <Items> <telerik:RadPanelItem Text="My Contacts"></telerik:RadPanelItem> <telerik:RadPanelItem Text="Address Cards"></telerik:RadPanelItem> <telerik:RadPanelItem Text="Phone List"></telerik:RadPanelItem> <telerik:RadPanelItem Text="Shared Contacts"></telerik:RadPanelItem> </Items> </telerik:RadPanelItem> <telerik:RadPanelItem Text="Future Use 2"> <Items> <telerik:RadPanelItem Text="My Tasks"></telerik:RadPanelItem> <telerik:RadPanelItem Text="Shared Tasks"></telerik:RadPanelItem> <telerik:RadPanelItem Text="Active Tasks"></telerik:RadPanelItem> <telerik:RadPanelItem Text="Completed Tasks"></telerik:RadPanelItem> </Items> </telerik:RadPanelItem> <telerik:RadPanelItem Text="Future Use 4"> <Items> <telerik:RadPanelItem Text="My Client.Net"></telerik:RadPanelItem> <telerik:RadPanelItem Text="My Profile"></telerik:RadPanelItem> <telerik:RadPanelItem Text="My Support Tickets"></telerik:RadPanelItem> <telerik:RadPanelItem Text="My Licenses"></telerik:RadPanelItem> </Items> </telerik:RadPanelItem> </Items> <ExpandAnimation Type="OutQuart" Duration="200"></ExpandAnimation> </telerik:RadPanelBar> </ContentTemplate> </telerik:RadDock> </telerik:RadDockZone> </td> <td style="border-style:none; vertical-align:top;"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional" > <ContentTemplate> <telerik:RadTabStrip ID="tabMain" runat="server" MultiPageID="multiPageMain" Skin="Office2007" AutoPostBack="True" ></telerik:RadTabStrip> <telerik:RadMultiPage ID="multiPageMain" runat="server" RenderSelectedPageOnly="True" > </telerik:RadMultiPage> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="tabMain" /> </Triggers> </asp:UpdatePanel> </td></tr> </table> <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"> </asp:ScriptManagerProxy> <asp:UpdateProgress id="UpdateMessagesProgress" DynamicLayout="false" runat="server" visible="true" DisplayAfter="250"> <ProgressTemplate> <div id="progressBackgroundFilter"></div> <div id="processMessage" style=" text-align:center;"> Processing...<br /><br /> <img alt="Loading" src="Images/busy.gif" /> </div> </ProgressTemplate> </asp:UpdateProgress> </asp:Content> <script type="text/javascript"> function GridCreated(sender, eventArgs) { //gets the main table scrollArea HTLM element var scrollArea = document.getElementById(sender.get_element().id + "_GridData"); var tvHeight = scrollArea.offsetHeight; var size = Math.floor(tvHeight / 64); //alert(size); var tableView = $find("<%= RadGridView.ClientID %>").get_masterTableView(); tableView.set_pageSize(size); } </script><telerik:RadGrid ID="RadGridView" AutoGenerateColumns="False" onitemdatabound="RadGridViewItemDataBound" OnItemCreated="RadGridViewItemCreated" AllowSorting="True" AllowPaging="True" EnableViewState="True" OnPageIndexChanged="RadGridPageIndexChanged" OnNeedDataSource="RadGridView_NeedDataSource" runat="server"> <PagerStyle Mode="NextPrev" Position="Bottom" AlwaysVisible="True" CssClass="RadGridPager" PagerTextFormat="Seite blättern: {4} Seite {0} / {1} - Einträge {2} - {3} / {5}"/> <ClientSettings> <Selecting AllowRowSelect="true" /> <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" /> <ClientEvents OnGridCreated="GridCreated" /> </ClientSettings> <MasterTableView TableLayout="Fixed" Font-Size="18px" ClientDataKeyNames="IsBlueLight,IsFailure,IsStopped,OrderNr,ObjectNr" DataKeyNames="OrderNr"> <NoRecordsTemplate> <div> Keine Einträge </div> </NoRecordsTemplate> <Columns> ......... </telerik:RadGrid>.... protected void RadGridView_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) { RadGridView.DataSource = Session[Constants.ORDERLIST] as List<Auftrag>; } ....
Setup Information:
· Visual studio v2005
· .NET Framework v2.0
· Reference for following dlls is added in the Project:
o System.Web.Extensions.dll
Path: C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\System.Web.Extensions.dll
o Telerik.Web.UI.dll
Path: C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2009\Bin\ Telerik.Web.UI.dll
When we are using the Telerik context menu control on our page, we are getting the following error:
'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager You will be automatically directed to the previous page in 5 seconds.
We also added all the suggested nodes in the Web.Config file, but the error is still there.
Also note that when we are using Telerik 3.5 dll with VS2008, everything is working fine.
Waiting eagerly for your response,
Abhishek
Thanks in Advance..!