Problem in RadScheduler(Width) auto adjustment in any screen(Big And Small)

3 posts, 0 answers
  1. Jiten
    Jiten avatar
    67 posts
    Member since:
    Dec 2010

    Posted 20 Apr 2011 Link to this post

    Hello,

    Problem in RadScheduler(Width) auto adjustment in any screen(Big And Small) and in IE/FireBox/Grome/Shafari.

    We used 

    script type="text/javascript">
        function resizeScheduler()   
                      {
                          var scheduler = $find('<%=RadScheduler1.ClientID %>');
                          scheduler.get_element().style.width = "100%";
                          scheduler.repaint();
                      }
    </script> 
    And also set width=100% in RadScheduler control

    In C# code
    RadScheduler1.Width = Unit.Percentage(100);
    but it is not work.

    please help me as soon as possible.


    Thanks

    Best Regards
    Mutum Jiten Singh
    Akhil Systems
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 22 Apr 2011 Link to this post

    Hello Jiteni,

    I guess that your code in C# doesn't works because you set the width too early. You need to set the Width of the Scheduler in the OnPreRenderComplete event :

    protected override void OnPreRenderComplete(EventArgs e)
       {
           base.OnPreRenderComplete(e);
           RadScheduler1.Width = Unit.Pixel(300);
       }

    Hope this helps.

    Regards,
    Veronica Milcheva
    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.

  3. Jiten
    Jiten avatar
    67 posts
    Member since:
    Dec 2010

    Posted 22 Apr 2011 Link to this post

    hello,

    I try this:
    protected override void OnPreRenderComplete(EventArgs e)
        {
            base.OnPreRenderComplete(e);
            RadScheduler1.Width = Unit.Percentage(100);
        }
    it does not work.

    Best Regards

    Mutum Jiten Singh

Back to Top