This is a migrated thread and some comments may be shown as answers.

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

2 Answers 177 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jiten
Top achievements
Rank 1
Jiten asked on 20 Apr 2011, 01:54 PM
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 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 22 Apr 2011, 08:03 AM
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.

0
Jiten
Top achievements
Rank 1
answered on 22 Apr 2011, 01:46 PM
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

Tags
Scheduler
Asked by
Jiten
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Jiten
Top achievements
Rank 1
Share this question
or