5 Answers, 1 is accepted
0
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:
Sincerely yours,
Simon
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
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
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.
Regards,
Simon
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
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?
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
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.
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.