15 Answers, 1 is accepted
I am afraid that it is currently impossible to hide the week numbers in RadDatePicker for Silverlight. I will add this as a feature for future implementation, though.
All the best,
Valeri Hristov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
The fixes will be included in the Friday latest internal build.
Kind regards,
Kaloyan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
xmlns:tkprimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls" |
xmlns:tki="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" |
<tki:RadDatePicker x:Name="datePicker" Width="100"> | |
<!--Hiding week number--> | |
<tki:RadDatePicker.MonthViewPanel> | |
<ItemsPanelTemplate> | |
<tkprimitives:RadUniformGrid Columns="8" Rows="7" FirstColumn="1" HideFirstColumn="true" /> | |
</ItemsPanelTemplate> | |
</tki:RadDatePicker.MonthViewPanel> | |
</tki:RadDatePicker> | |
THanks.
Sergey
Thank you for contacting us.
You could refer to this topic in our forum: http://www.telerik.com/community/forums/wpf/datepicker/hide-week-number.aspx
I hope this helps!
George
the Telerik team
The above link is to a WPF solution. There is no AreWeekNamesVisible property available in Silverlight that I can find.
What is the current solution for hiding the week number in the SL4 RadDatePicker? It seems like the default ought to be that the week number is hidden.
Terry
This WPF solution for RadDatePicker control applies for Silverlight as well. AreWeekNamesVisible property is obsolete and that's why you cannot access it.
I hope this helps.
George
the Telerik team
This seems like a contradiction?
I was hoping that all the properties for the Calendar control would be available in the DatePicker control?
I will answer you in the same way I did in the other tickets:
We introduced our new RadDateTimePicker control this Q2 release and we made some required changes with date and time pickers. We tried to make as few changes to the controls as possible. Now RadDatePicker and RadTimePicker controls inherit RadDateTimePicker.
These properties are Obsolete for now. That's the reason they have no effect on the calendar. They will be removed in Q3 release. If you want to disable the week numbers, for example, I would suggest you to set a Style for CalendarStyle property and in this style you could set the value for the property AreWeekNumbersVisible to False. The same is for the other properties.
The main reason to obsolete all these properties is to keep the usage of RadDate/TimePicker in Silverlight and WPF standardized.
Kind regards,
George
the Telerik team
I appreciate the need for standardization (dont we all?), however I'm still confused why these properties cant be exposed as the standard? What Im saying is, the properties are there within the template. I realize the template is accessing the stand alone calendar control but this form of dependency is having a negative effect on the datepickers functionaility. I'm not trying to change the base template of the calander, but trying to set it's properties.
Hence I am still confused why the properties cant be exposed publicly?
My feeling is that this is not the way Telerik wish to go and I will have to live with that fact? The components are great and very helpful/feature rich! I did an in depth comparison with competing vendors and Telerik (in my opinion) is way ahead of the rest.
Cheers,
Murray
Exposing all these properties will flood the RadDateTimePicker control with a large number of properties and we definitely don't want this scenario. Also, if you use RadTimePicker control, for example,
AreWeekNamesVisible property will be visible and it might cause a mess.
Please do not hesitate to contact us if you require any further information.
Greetings,George
the Telerik team
There are so many posts on this subject!
I get error "The attachable property MonthViewPanel was not found in the type 'RadDatePicker' when I use the following code:
<
telerik:RadDatePicker.MonthViewPanel
>
<
ItemsPanelTemplate
>
<
tkprimitives:RadUniformGrid
Columns
=
"8"
Rows
=
"7"
FirstColumn
=
"1"
HideFirstColumn
=
"true"
/>
</
ItemsPanelTemplate
>
</
telerik:RadDatePicker.MonthViewPanel
>
Is there an SL4 solution for this yet short of a custom template? It's been a problem for a long time. If nothing else, change the default to not show week numbers. No one seems to want them.
Thanks,
Terry
Could you please share with use from where did you get this template? Has Blend generated it? Also, which version of the DatePicker are you using? Are you trying to remove the week numbers?
Could you please try with the latest version of the controls - the Q2 2011 Beta version and let us know if you still experience the issue.
Best wishes,
Konstantina
the Telerik team