Font-Size for RADDatePicker

8 posts, 0 answers
  1. L
    L avatar
    295 posts
    Member since:
    Apr 2008

    Posted 12 May 2008 Link to this post

    hi

    I tried to change the font-Size to Large but it seems that the font size didn't change. I am using defautl skin. Thanks
  2. L
    L avatar
    295 posts
    Member since:
    Apr 2008

    Posted 12 May 2008 Link to this post

    ok, Solved. Thanks
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bimar
    Bimar avatar
    20 posts
    Member since:
    Jan 2006

    Posted 14 Aug 2008 Link to this post

    I have the same problem could you explain the solution.

    Thanks...
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Aug 2008 Link to this post

    Hi Yesim,

    Have you tried with the following code snippet to set the font -size?

    CS:
     RadDatePicker1.Calendar.Font.Size = System.Web.UI.WebControls.FontUnit.Large; 
            RadDatePicker1.Calendar.Font.Bold = true


    Thanks
    Shinu.
  6. Seth
    Seth avatar
    90 posts
    Member since:
    Jun 2007

    Posted 02 Apr 2009 Link to this post

    I have tried these methods and it still does not change for me.

    Here is my situation:

    I have created a custom skin, inherited from the Office2007 skin.  I have changed nothing other than the names of the CSS files and the names of the styles inside of the CSS files.  I have gotten other skins to respond to the changes, but so far, not the DatePicker.

    I have the following delcaration in my skin file.  The DateInput-Font-Size works, the Calendar-Font-Size does not:

    <telerik:RadDatePicker runat="server" Font-Size="8" Calendar-Font-Size="8" DateInput-Font-Size="8" /> 
     

    I have also tried putting the Font-Size directly on the control and it does not respond either.  I also tried setting the font size at PreInit on my page events and that too had no affect.

    Any help is appreciated.
  7. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 02 Apr 2009 Link to this post

    Hello Seth,

    The RadCalendar skin normally sets several font-sizes for the different control's elements (titlebar, date matrix, etc). You cannot override all these with a single declared property, because it applies to the control's wrapper, while the font-sizes in the skin apply to inner elements and take precedence.

    You can edit the Calendar's skin directly or use more specific declarative style properties, like the ones used in this online demo:

    http://demos.telerik.com/aspnet-ajax/calendar/examples/design/styles/defaultcs.aspx

    Best wishes,
    Dimo
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  8. Seth
    Seth avatar
    90 posts
    Member since:
    Jun 2007

    Posted 07 Apr 2009 Link to this post

    Thank you for the information.  Does this apply to the RadGrid as well?  I have made the following change to the Skin and it has no effect.

    Thanks.

    <telerik:RadGrid runat="server"  
        ItemStyle-Font-Size="8"  
        AlternatingItemStyle-Font-Size="8"  
        SelectedItemStyle-Font-Size="8" 
        ActiveItemStyle-Font-Size="8" /> 

  9. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 08 Apr 2009 Link to this post

    Hello Seth,

    Your RadGrid code snippet works as expected on my side. Please provide a complete example, which exhibits the problem.

    Regards,
    Dimo
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017