Enabling datepicker from client side

3 posts, 0 answers
  1. Avik
    Avik avatar
    32 posts
    Member since:
    Jun 2008

    Posted 02 Jul 2008 Link to this post

    The total code is in javascript
    I was doing radDatePicker,enabled=false from the server side.
    Now coming back to the client side I tried to enable the control
    The  scenario was like I had enabled the textbox of the radDatePicker but on clicking of the calendar popup button the calendar was not shown.

    I  used the following piece of code.

    document.getElementById(obj17).parentElement.disabled=false


    objrDatePicker.DateInput.Enable();

    I'm right now being able to get the calendars on clicking of the raddatepicker but there are a few problems which I am still facing (I am making the radDatePicker enabled=false in the server side)

    1. I got two radDatePickers in two different user controls, so when I'm using the code like:

    obj16.PopupButton.onclick =

    function()

    {

     obj16.TogglePopup();

     return false;

    }

    it is always coming beside one radDatePicker in one user control, I'm not getting two calendars for each of the two radDatePicker.(On clicking of any of the two radDatePicker the only one calendar is appearing)



    2. On clicking on any date, the selected date is not appearing in the textbox of the datepicker.


    How will I able to get the control enabled from the client side?


    Plese let me know ASAP because it's very urgent for me

  2. Mishel
    Mishel avatar
    17 posts
    Member since:
    Jun 2008

    Posted 02 Jul 2008 Link to this post

    Hi,

    It seems that this behaviour is a known issue. You could disable and enable it on initial load with java script.

    Check this forum post: http://www.telerik.com/community/forums/thread/b311D-tdkgc.aspx
  3. Avik
    Avik avatar
    32 posts
    Member since:
    Jun 2008

    Posted 02 Jul 2008 Link to this post

    Thanks Mishel for your quick response.

    So does it really mean that when I am disabling a radDatepIcker from the server side, it can't be enabled/disabled properly from the javascript?

    In my version of ASP.Net $find method does'nt work out properly, so the other way in which the code is given I tried out completely, even then it is not working properly.

    The calendar is coming in one place instead of two places, and when I click on the calendar date is not being shown on the textbox.

    Is there any way to get the calendar exactly at the places of control and to make the selected date from the calendar reflecting on the text box
Back to Top