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

Scheduler DatePicker showing row numbering

5 Answers 100 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
reubix
Top achievements
Rank 1
reubix asked on 14 Sep 2008, 02:35 AM
Hi is there a reason why there are row numbers for the popup date picker in rad scheduler.  Is there a way to disable this feature.

thanks

Robin

5 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 15 Sep 2008, 02:31 PM
Hi reubix,

The DatePicker in RadScheduler is actually a RadDatePicker. The week numbers are part of the default display of the RadDatePicker control.

You can remove the numbers by setting the ShowRowHeaders of the Calendar of the DatePicker to false:

RadDatePicker datePicker = this.RadScheduler1.FindControl("SelectedDatePicker"as RadDatePicker; 
 
datePicker.Calendar.ShowRowHeaders = false

Sincerely yours,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Penny
Top achievements
Rank 1
answered on 29 Oct 2008, 05:03 PM
Is there a particular place in code I should put these lines? I put them in the page_load function, the lines hit every time, but I still get row headers in the datepicker.
0
Simon
Telerik team
answered on 30 Oct 2008, 05:45 PM
Hello Penny ,

The best place to change the appearance of the DatePicker, as well as the Scheduler in general, is in the OnPreRender event handler of the page.

    protected override void OnPreRender(EventArgs e) 
    { 
        base.OnPreRender(e); 
 
        RadDatePicker datePicker = this.RadScheduler1.FindControl("SelectedDatePicker"as RadDatePicker; 
 
        datePicker.Calendar.ShowRowHeaders = false
    } 




Regards,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Penny
Top achievements
Rank 1
answered on 30 Oct 2008, 06:39 PM
That did not work either. I'm using Visual Basic. Here is my code.

Protected Overrides Sub OnPreRender(ByVal e As EventArgs)

        MyBase.OnPreRender(e)
        Dim datePicker As RadDatePicker = TryCast(Me.Board.FindControl("SelectedDatePicker"), RadDatePicker)
        datePicker.Calendar.ShowRowHeaders = False

    End Sub

On debug, the ShowRowHeaders property is set to False, but I still get row headers on the control. Could it have anything to do with how I'm building the scheduler (I'm not building it in codebehind, I just drop it into the html code) Any other ideas?
0
Peter
Telerik team
answered on 31 Oct 2008, 09:16 AM
Hi Penny ,

We tested your code and it worked as expected on our side. Please, refer to the attached demo.

Sincerely yours,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
reubix
Top achievements
Rank 1
Answers by
Simon
Telerik team
Penny
Top achievements
Rank 1
Peter
Telerik team
Share this question
or