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

Enabling datepicker from client side

2 Answers 85 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Avik
Top achievements
Rank 1
Avik asked on 02 Jul 2008, 02:16 PM
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 Answers, 1 is accepted

Sort by
0
Mishel
Top achievements
Rank 1
answered on 02 Jul 2008, 02:41 PM
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
0
Avik
Top achievements
Rank 1
answered on 03 Jul 2008, 04:20 AM
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
Tags
Calendar
Asked by
Avik
Top achievements
Rank 1
Answers by
Mishel
Top achievements
Rank 1
Avik
Top achievements
Rank 1
Share this question
or