Set Default Height on RadScheduler

6 posts, 0 answers
  1. r
    r avatar
    2 posts
    Member since:
    Jun 2010

    Posted 14 Jun 2010 Link to this post

    I want to extend the length of this control to the entire length of the table that it's contained in.
    How is the best done, javascript when it builds the calender event(s) or just using CSS.
    I couldn't find any examples my code is below..

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <link href="styles/jjma_local.css" type="text/css" rel="stylesheet" />
        <title>Task Calendar View</title>
        <script type="text/javascript" >
            function showEvent(sender, eventArgs)
            {
                var id=eventArgs.get_appointment().get_id();
                var ids=id.split("%");
                if(ids.length===2)
                    window.open("MainForm.aspx?type=taskDetails&LookID="+ids[0] + "&hullID=" + ids[1], "_blank");
                else
                    alert("An unknown error has occurred.  The calendar will be unable to forward you to the task you have selected.");
            }
        </script>
    </head>
    <body class="FramedFormBodyStyle" style="margin: inherit 5px 3px inherit;">
        <form id="TaskCalendarView" runat="server">
        <asp:ScriptManager ID="scptMgr" runat="server">
        </asp:ScriptManager>
            <div>
                <telerik:RadScheduler ID="rschdTasks" runat="server" AllowDelete="False"  
                    SelectedView="MonthView" ShowViewTabs="false"  OnAppointmentDataBound="rschdTasks_OnAppointmentDataBound"
                    AllowEdit="False" AllowInsert="False" MonthVisibleAppointmentsPerDay="10"  ShowFooter="false"
                    NumberOfHoveredRows="20" ReadOnly="True" Skin="Telerik" Height="400px" onclientappointmentclick="showEvent" 
                    EnableAdvancedForm="False"  >
                    <MonthView AdaptiveRowHeight="True" ReadOnly="True" VisibleAppointmentsPerDay="20" MinimumRowHeight="2" />
                    <Localization AdvancedAllDayEvent="All day"></Localization>
                    <AdvancedForm DateFormat="M/d/yyyy" TimeFormat="h:mm tt" Enabled="False"></AdvancedForm>
                </telerik:RadScheduler>
            </div>
        </form>
    </body>
    </html>


  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Jun 2010 Link to this post

    Hello r,

    Please, try setting OverflowBehavior="Expand" and Height="100%" for RadScheduler. I hope this helps.


    Greetings,
    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. dbozhyk
    dbozhyk avatar
    3 posts
    Member since:
    Oct 2009

    Posted 28 Dec 2010 Link to this post

    Hello All
    I have the same problem, setting OverflowBehavior="Expand" and Height="100%" doesn't resolve it.
    I'm using 2009.3 version.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 30 Dec 2010 Link to this post

    Hello,

    Have you tried with the current official version - 2010.3.1215?

    All the best,
    Peter
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  6. J2K
    J2K avatar
    33 posts
    Member since:
    Sep 2005

    Posted 10 Aug 2014 in reply to Peter Link to this post

    Setting overflow and height achieves ABSOLUTELY nothing.
  7. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 13 Aug 2014 Link to this post

    Hello,

    I would like to clarify that setting the RadScheduler OverflowBehavior="Expand" should achieve the desired functionality. This property does expand the calendar area in order to be visible without any vertical scroll bar. Could you please clarify what goal you want to achieve and please explain why setting the OVerflowBehavior does not meet your requirements?

    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017