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

popup calendar from code

2 Answers 50 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 16 Sep 2009, 03:38 AM
hi all,

i want to hide the imagebutton of datepicker and open the calendar from code from clientside. is that possible?

thanks for any reply.

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 16 Sep 2009, 04:32 AM
Hi Banjamin,

Here is the example that I tried in order to hide the DatePopupButton and showing the popup calendar from client side code. Give a try with this and see whether it helps.

ASPX:
 
<telerik:RadDatePicker ID="RadDatePicker2" runat="server"
    <DatePopupButton HoverImageUrl="" ImageUrl="" Visible="False" /> 
</telerik:RadDatePicker> 
 
<input id="Button2" type="button" value="button" onclick="popup();" /> 

JavaScript:
 
<script type="text/javascript"
function popup() 
    var datepicker = $find("<%= RadDatePicker2.ClientID %>"); 
    datepicker.showPopup(); 
</script> 

-Shinu.
0
Benjamin
Top achievements
Rank 1
answered on 20 Sep 2009, 07:40 PM
thanks. this works well.
Tags
Calendar
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Benjamin
Top achievements
Rank 1
Share this question
or