RadDatePicker Foreground and background

13 posts, 0 answers
  1. Anjan Guha
    Anjan Guha avatar
    6 posts
    Member since:
    Jul 2009

    Posted 21 Dec 2009 Link to this post

    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
  2. Pana
    Admin
    Pana avatar
    748 posts

    Posted 23 Dec 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Anjan Guha
    Anjan Guha avatar
    6 posts
    Member since:
    Jul 2009

    Posted 13 Jan 2010 Link to this post

    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
  5. Pana
    Admin
    Pana avatar
    748 posts

    Posted 19 Jan 2010 Link to this post

    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.
  6. Suresh v
    Suresh v avatar
    6 posts
    Member since:
    Jan 2010

    Posted 20 Jan 2010 Link to this post

    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,
  7. Suresh v
    Suresh v avatar
    6 posts
    Member since:
    Jan 2010

    Posted 21 Jan 2010 Link to this post

    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 
  8. Suresh v
    Suresh v avatar
    6 posts
    Member since:
    Jan 2010

    Posted 21 Jan 2010 Link to this post

    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

  9. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 25 Jan 2010 Link to this post

    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.
  10. Suresh v
    Suresh v avatar
    6 posts
    Member since:
    Jan 2010

    Posted 25 Jan 2010 Link to this post

    hi,

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

    thank you
  11. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 28 Jan 2010 Link to this post

    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.
  12. Suresh v
    Suresh v avatar
    6 posts
    Member since:
    Jan 2010

    Posted 30 Jan 2010 Link to this post

    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,
  13. Anjan Guha
    Anjan Guha avatar
    6 posts
    Member since:
    Jul 2009

    Posted 12 Apr 2010 Link to this post

    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,
  14. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 15 Apr 2010 Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready