Customize RadDatePicker in RadScheduler

3 posts, 1 answers
  1. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 26 Oct 2010 Link to this post

    Hi,

    I have a RadScheduler on my page, but in the DatePicker it shows in its top-left corner, it doesn't show weeknumbers.
    If I take a separate DatePicker, it will show me weeknumbers (if I set ShowRowHeaders = true or leave it at default).

    Is there a way to have the datepicker in the scheduler show these weeknumbers too?

    Thanks in advance!
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 26 Oct 2010 Link to this post

    Hello,


    The following code will do the trick.

    CS:
    protected void RadScheduler1_PreRender(object sender, EventArgs e)
    {
        RadCalendar popupCalendar = RadScheduler1.FindControl("SelectedDateCalendar") as RadCalendar;
        popupCalendar.ShowRowHeaders = true;       
    }



    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 29 Oct 2010 Link to this post

    Hey Shinu,

    Thanks, it works like a charm. Only had to add
    popupCalendar.UseRowHeadersAsSelectors = false;
    to avoid row selection.

    Cheers!
Back to Top