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

[Solved] RadDatePicker: Can RadDatePicker show the Calendar always?

2 Answers 187 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Meghna
Top achievements
Rank 1
Meghna asked on 11 Mar 2010, 08:45 AM
I have used RadDatePicker in my page. I want the Calender of RadDatePicker should always be open irrespective of clicking on Calendar icon.
Can any one help me in this?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Mar 2010, 12:47 PM

Hello Meghna,

You can disable the pop-up image (for opening calendar popup) if the calendar is visible on page.Disable the popup image in OnPopupOpening and enable it in OnPopupClosing client event.

JavaScript:

    function PopupOpening(sender, args) {  
        sender.get__popupImage().disabled = true;  
    }  
    function OnPopupClosing(sender, args) {  
        sender.get__popupImage().disabled = false;  
    } 

-Shinu.

0
Meghna
Top achievements
Rank 1
answered on 11 Mar 2010, 01:58 PM
Hi Shinu,

It is not working as expected. When i used these events, only the image of calendar is displayed where as no datepicker is getting popup. For my requirement I don't want these images of calender. On load of datepicker, user should only be able to see textbox and calender control. And when he selects any date in datepicker it should get populated in the datepicker text box.

<

 

telerik:RadDatePicker runat="server" ID="dpStartDatCalander">
<ClientEvents OnPopupOpening="OnPopupOpening"/>
</telerik:RadDatePicker>

 


function PopupOpening(sender, args) {  
        sender.get__popupImage().disabled = true;  
    }

But this whole code snippet is not working.
Can you highlight the issue and let me know its solution?
Tags
Calendar
Asked by
Meghna
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Meghna
Top achievements
Rank 1
Share this question
or