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

Images not loading

6 Answers 132 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
newbie
Top achievements
Rank 1
newbie asked on 29 Apr 2008, 05:06 PM
I have a RadDatePicker on one of my pages.(I have another DatePicker inside the template column of a grid and I see the same issue there)

The initial datepickerimage loads fine.
But the popup calendar does not have a background image and the numbers get mixed up with the other controls behind it.
I am not using a custom skin for DatePicker.

Please help.

6 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 30 Apr 2008, 08:14 AM
Hi,

If you are using a custom skin for RadGrid, you need to create custom skins with the same name for RadInput and RadCalendar as well. When you register these custom skins (CSS files) on your web page, the datepicker will look OK.

All the best,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
newbie
Top achievements
Rank 1
answered on 30 Apr 2008, 04:25 PM
I have put a custom skin for RadCalendar but it does not help
My Custom skin for grid is 'Grid.Custom.css' and for calendar is 'Calendar.Custom.css'. I don't see a custom skin for the RadDatePicker in the Telerik Installation folder.Do I need to put one for that too for the Calendar skin to show?

I have a custom skin for RadInput registered too on the webpage
0
newbie
Top achievements
Rank 1
answered on 30 Apr 2008, 04:59 PM
Even though I have the custom skins registered on the page i have not specified my datePicker to use them.
DatePicker does not have a skin property.
How would the datepicker know which skins to use.

How is the custom skin for the grid connected to the datepicker?
0
newbie
Top achievements
Rank 1
answered on 30 Apr 2008, 07:32 PM
The way I got it working was by putting a calendar inside RadDatePicker and settings its skin.
Is that the right approach?
0
Konstantin Petkov
Telerik team
answered on 01 May 2008, 07:31 AM
Hello newbie,

The DatePicker has a Skin property as well, but you can indeed set the Calendar's Skin to a custom one if required. We've used the same approach here:

http://www.telerik.com/demos/aspnet/prometheus/Calendar/Examples/Design/Sunny/DefaultCS.aspx

    <head runat="server"
        <link rel="stylesheet" type="text/css" href="Sunny/Calendar.Sunny.css" /> 
        ... 
    </head> 


    <telerik:RadDatePicker id="RadDatePicker1" Runat="server" MinDate="2006-01-01" SelectedDate="2006-12-24" SharedCalendarID="sharedCalendar" Width="100px">                                                                                                         
         <Calendar EnableEmbeddedSkins="false" Skin="Sunny"></Calendar> 
        <DatePopupButton ImageUrl="Sunny/Img/datePickerPopup.gif" HoverImageUrl="Sunny/Img/datePickerPopupHover.gif" />                                                 
    </telerik:RadDatePicker> 

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
newbie
Top achievements
Rank 1
answered on 01 May 2008, 04:49 PM
Thanks
It works fine now.
Tags
Calendar
Asked by
newbie
Top achievements
Rank 1
Answers by
Dimo
Telerik team
newbie
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or