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

RadDatePicker Foreground and background

12 Answers 290 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Anjan Guha
Top achievements
Rank 1
Anjan Guha asked on 21 Dec 2009, 02:05 PM
I want to change the Foreground and Background of the Month and Year Button (Currently by default the foreground is grey and the background also). What is the simplest way of doing that.

Attached is the current view (December 2009)

Thanks,
Anjan

12 Answers, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 23 Dec 2009, 05:39 PM
Hello Anjan Guha,

Check the attached project. Search for the "NOTE:" comment in the style. You will find where is the header in the calendar template. You can grab the styles and use them in your project.

Sincerely yours,
Panayot
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.
0
Anjan Guha
Top achievements
Rank 1
answered on 13 Jan 2010, 04:04 PM
Hi,

I have applied the entire Styles and it works. (I can change the colour at the specified portion)

The question is whether I need to apply the entire styles or a cut down version of the styles( only that is required to change the colour) can be applied to get the desired result. A sample will be useful

Regards,
Anjan
0
Pana
Telerik team
answered on 19 Jan 2010, 08:30 AM
Hi Anjan Guha,

You will need both styles for  RadCalendarStyle and RadDatePicker. Eventually you can put them in separate file and add them as merged dictionary in the main but you can't set the foreground through a single property. It's deep within the template so you will need the whole styles.

Regards,
Panayot
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.
0
Suresh v
Top achievements
Rank 1
answered on 20 Jan 2010, 10:41 AM
hi,

on first post of this thread, "raddatepicker.JPG", dates after 21 is displayed like blank.  can i know where exactly the color of disabled text to set.
any sample code available setting the color for disabledtext.

thank you,
0
Suresh v
Top achievements
Rank 1
answered on 21 Jan 2010, 07:36 AM
hi

setting popup's allowtransparency property to false has solve the problem better. 

is that possible to remove the week number column from datepicker ?

thank you 
0
Suresh v
Top achievements
Rank 1
answered on 21 Jan 2010, 11:26 AM
hi,

able to remove the weeknumber column also,

On RadDatePicker Style

<Setter Property="MonthViewPanel">

<Setter.Value>

<ItemsPanelTemplate>

<Telerik_Windows_Controls_Primitives:RadUniformGrid Columns="8" Rows="7" IsItemsHost="True" FirstColumn="1" HideFirstColumn="True" ChildrenFlow="Horizontal" PreserveSpaceForCollapsedChildren="True" />

</ItemsPanelTemplate>

</Setter.Value>

</Setter>

thank you

0
Kaloyan
Telerik team
answered on 25 Jan 2010, 08:20 AM
Hello Suresh v,

Another simple option is to use the AreWeekNumbersVisible property setted to false. It will lead you to the same result.

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.
0
Suresh v
Top achievements
Rank 1
answered on 25 Jan 2010, 08:51 AM
hi,

yah, i tried that, but its not removing the column.  i have to remove the weeknumber column.  so edited with styles.

thank you
0
Konstantina
Telerik team
answered on 28 Jan 2010, 11:30 AM
Hello Suresh,

Straight to your question.

The property is working at our side as expected. Could you please share with us which version of the controls you are working with? You can upgrade to the latest and the problem will disappear.

Looking forward to your reply.

Regards,
Konstantina
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.
0
Suresh v
Top achievements
Rank 1
answered on 30 Jan 2010, 10:58 AM
hi,

yah, its working on new one, the problem occurs with the old one.  i have to update with the new dll on the next version of project. thanks for the support.

thank you,
0
Anjan Guha
Top achievements
Rank 1
answered on 12 Apr 2010, 05:43 PM
Hi,

Currently the week numbers for January 2010 is starting from 2 (pls see attached). User wants the week numbers start from 1 (i.e. the week starting 4th Jan should be week number 1 and not 2).

Is it acheivable?

Regards,
0
Konstantina
Telerik team
answered on 15 Apr 2010, 02:41 PM
Hello Anjan,

Thank you for contacting us.

This is because that is the default count of the weeks. Actually the first week of 2010 contain just three days - 1st, 2nd and 3rd January.
The way to change that is to use a DayTemplateSelector for the DatePicker.
Attached I am sending you a sample project in which the use of the DayTemplateSelector is illustrated. There in the WeekHeadersSelector class you can implement a logic that will add 1 to each week number.
You can see an example how the DayTemplateSelector is used also in this online demo.
Hope this helps.

If you need further assistance please let us know.

All the best,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
DatePicker
Asked by
Anjan Guha
Top achievements
Rank 1
Answers by
Pana
Telerik team
Anjan Guha
Top achievements
Rank 1
Suresh v
Top achievements
Rank 1
Kaloyan
Telerik team
Konstantina
Telerik team
Share this question
or