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

Issue with special days

3 Answers 72 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 09 Dec 2008, 01:46 PM

Hello,

I can't highlight special days.

Version of calendar: 1.8.1.0

This version doesn't have property "ItemStyle". So I try to highlight it using javascript method ClientEvents-OnDayRender="DayRender", but I can't retrieve calendar object in object RadDatePicker. In examples using this functions:

  var picker = $find("<%=RadDatePicker1.ClientID%>");  
var calendar = picker.get_calendar();

But this return error "Object doesn’t support this property or method"

I also try to use templates. But when I navigate to next or previous month, they  disappear.

- Anton






3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 09 Dec 2008, 02:10 PM
Hi Anton,

Could you please try to use templates for the required functionality and also set the AutoPostBack property of the control to "true". Give this suggestion a try and let us know how it goes.

Regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Anton
Top achievements
Rank 1
answered on 09 Dec 2008, 02:50 PM

Calendar object doesn't have property AutoPostBack. 

There are two properties in current calendar version:

Calendar-AutoPostBackOnNavigation="true"

Calendar-AutoPostBackOnDayClick="false"

But this options doesn't call PostBack, while I doesn't set Calendar-OperationType="Ajax".

In this case PostBack is called, but Calendar hides after first shown.

I try to show it using this function $find("<%= RadDatePicker1.ClientID %>").showPopup(); but this function doesn't exist in this version.

Regards,
Anton




0
Maria Ilieva
Telerik team
answered on 10 Dec 2008, 02:48 PM
Hi Anton,

Please try to use:

 window["<%= RadDatePicker1.ClientID %>"].ShowPopup(); if you are using the classic version of the control

Kind regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Calendar
Asked by
Anton
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Anton
Top achievements
Rank 1
Share this question
or