using modified skin: images for date picker in form missing

7 posts, 0 answers
  1. Reini
    Reini avatar
    16 posts
    Member since:
    Apr 2007

    Posted 08 May 2008 Link to this post

    hi!

    i'm using a modified skin (office2007) for scheduler - which works fine for the scheduler itself...

    when i call the advanced edit form the calendar control that is used for the start & end date is missing it's images and the popup calendar seems to miss all css...

    it searches for the images under the application root...

    where can i set the skin, paths or style sheet for the calendar control within scheduler? or where / or how do i have to include the skin for the calendar control?

    thank you very much for your help!
    kind regards
    reini
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 12 May 2008 Link to this post

    Hi Reini,

    You need to register the RadDatePicker and RadCalendar skins in the same way you did for RadScheduler. Just copy the skins folder's in your project and add reference to the stylesheets as described in the Skin registration topic.

    Let us know if you experience any problems.


    Regards,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Reini
    Reini avatar
    16 posts
    Member since:
    Apr 2007

    Posted 13 May 2008 Link to this post

    hi peter!

    thank you for your answer.

    actually i did that already - i copied the skin folders & registered the css for scheduler & calendar in my page:

    ...  
    <head runat="server">  
        <title>Scheduler</title> 
        <link href="Styles.css" rel="stylesheet" type="text/css" /> 
        <link href="Skin/Office2007/Scheduler.Office2007.css" rel="stylesheet" type="text/css" /> 
        <link href="Skin/Office2007/Calendar.Office2007.css" rel="stylesheet" type="text/css" /> 
    </head> 
    ... 

    i also tried to use '~/...' and 'runat=server' for the '<link...' tag.

    my problem is that i can't find a css for the datepicker control (no such file: 'datepicker.office2007.css')

    also in the 'calendar.office2007.css' there is only one reference to an image: 'titlebarBg.gif' - which seems to work, but all the other images (arrowleft.gif, arrowright.gif....) are not referenced in the css file - and therefore are only showing up when i place them in my application root....

    is this a problem with calendar? or with office2007 skin? or am i doing something wrong?

    thank you for your help!
    kind regards
    reini
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 14 May 2008 Link to this post

    Hi Reini,

    The DatePicker is using the Calendar and the Input skin files for its skins. Thus you need to add reference to the input css in your page header also. For the images to display, you need to set explicitely the properties ImageUrl and HoverImageUrl for the DatePopupButton of the picker, and the FastNavigationNextImage, FastNavigationPrevImage, NavigationNextImage, NavigationPrevImage properties of the picker Calendar.

    Let us know if you need further directions/help. 

    All the best,
    Iana
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Reini
    Reini avatar
    16 posts
    Member since:
    Apr 2007

    Posted 14 May 2008 Link to this post

    hi iana!

    thank you for that answer!
    it definitely makes sense - so i added the input skin as well....

    however: where shall i set the image urls? the datepicker is part of the scheduler appointment form and therefore no direct accessible object (control) for me if i'm using the standard form (which i'm doing :-)

    so is there another way of applying the skin to the calendar & datpicker & the images?
    if not - well i can live with the workaround putting all images in the root folder for the time being :-)

    thank you!
    kind regards
    reini
  7. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 16 May 2008 Link to this post

    Hello Reini,

    You can use FindControl to obtain references to the date pickers in the FormCreated event:

    protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e) 
        if (e.Container.Mode == SchedulerFormMode.AdvancedInsert || 
            e.Container.Mode == SchedulerFormMode.AdvancedEdit) 
        { 
            RadDatePicker startDate = (RadDatePicker) e.Container.FindControl("StartDate"); 
            RadDatePicker endDate = (RadDatePicker) e.Container.FindControl("EndDate"); 
        } 
    }  

     
    All the best,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Reini
    Reini avatar
    16 posts
    Member since:
    Apr 2007

    Posted 16 May 2008 Link to this post

    ahhhhhh :-) that makes sense.... i will try that out!
    many thanks!!
    reini
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017