This is a migrated thread and some comments may be shown as answers.
Positioning RadDatePicker Popup
1 Answer 29 Views
This is a migrated thread and some comments may be shown as answers.
Rosco
Top achievements
Rank 1
Rosco asked on 09 Jan 2011, 11:31 PM
Hi there,

I have read the article here http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/clientapi/defaultcs.aspx in order to position the RadDatePicker popup. However, I get an error saying Telerik is Undefined due to the following code:

 

 

var startPicker = $("#<%=this.start.ClientID %>");

 

 

 

var endPicker = $("#<%=this.end.ClientID %>");

 

startPicker.set_popupDirection(Telerik.Web.RadDatePickerPopupDirection.TopRight);

endPicker.set_popupDirection(Telerik.Web.RadDatePickerPopupDirection.TopRight);

Can someone assist me in fixing this issue?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 10 Jan 2011, 07:47 AM
Hello Rosco,

I am not quite sure about your issue.To get the client side object  use the '$find' method.

aspx:
$find('<%=this.start.ClientID %>');
 
And also which version of telerik controls you are using?  The RadDatePickerPopupDirection is not available with the older versions. The error may be because of the version difference.

Thanks,
Shinu.
Asked by
Rosco
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or