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

using modified skin: images for date picker in form missing

6 Answers 108 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Reini
Top achievements
Rank 2
Reini asked on 08 May 2008, 04:07 PM
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

6 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 May 2008, 03:05 PM
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
0
Reini
Top achievements
Rank 2
answered on 13 May 2008, 08:28 AM
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
0
Iana Tsolova
Telerik team
answered on 14 May 2008, 02:17 PM
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
0
Reini
Top achievements
Rank 2
answered on 14 May 2008, 03:19 PM
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
0
T. Tsonev
Telerik team
answered on 16 May 2008, 01:43 PM
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
0
Reini
Top achievements
Rank 2
answered on 16 May 2008, 03:05 PM
ahhhhhh :-) that makes sense.... i will try that out!
many thanks!!
reini
Tags
Scheduler
Asked by
Reini
Top achievements
Rank 2
Answers by
Peter
Telerik team
Reini
Top achievements
Rank 2
Iana Tsolova
Telerik team
T. Tsonev
Telerik team
Share this question
or