RadDatePicker: Can RadDatePicker show the Calendar always?

3 posts, 0 answers
  1. Meghna
    Meghna avatar
    37 posts
    Member since:
    Jun 2008

    Posted 11 Mar 2010 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Mar 2010 Link to this post

    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.

  3. Meghna
    Meghna avatar
    37 posts
    Member since:
    Jun 2008

    Posted 11 Mar 2010 Link to this post

    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?
Back to Top