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

[Solved] Broken RadCalendar Link

1 Answer 59 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brad Docimo
Top achievements
Rank 1
Brad Docimo asked on 17 Jul 2009, 07:47 PM
I am using a custom skin.  In order to make the calendar link not be a broken image, I am using the following code to manually force the scheduler to look in the right place.  That works great on the initial page load, but if there are any async postbacks on the page that reload the calendar, the image link is broken again until the page is reloaded.  Is there a better way to do this where the link won't get screwed up on async postbacks?
 

Protected Overloads Overrides Sub OnPreRender(ByVal e As System.EventArgs)
'Change the image path for the date popup icon
Try
MyBase.OnPreRender(e)
Dim selectedDatePicker As RadDatePicker = TryCast(RadScheduler1.FindControl("SelectedDatePicker"), RadDatePicker)
If selectedDatePicker.IsEmpty = False Then
selectedDatePicker.ImagesPath = "skins/LightGreen/Calendar"
selectedDatePicker.Calendar.ShowRowHeaders = False
End If
Catch ex As Exception
'Do nothing - supress the error
End Try
End Sub

Thanks,
- Brad

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 23 Jul 2009, 10:30 AM
Hello Brad,

Probably, you are using an older version. With Q3 2008 and later versions, the calendar image is replaced with a dropdown arrow. If you upgrade to Q3 2008 or higher, you will not need to apply any workarounds to get proper appearance.
 
Let us know if you have further questions or concerns.  


Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
Brad Docimo
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or