AjaxControlToolKit question

A

abcd

I am using AjaxControlToolKit calender extender. When I select the date from
calender control then the date is properly shown to the text box
(i.e.TargetControlID). But I dont get the cursor there in the textbox. How do
I get the cursor in the textbox once the date is selected. What trick should
I need to do.

-->

<asp:TextBox ID="RA_departing_date" CssClass="TBL_date" runat="server"
TabIndex="10" onKeyPress="return checkEnter(event)" />
<img src="App_Themes/common/images/icon_calendar.gif" alt="Calendar
Selection" id="calendaricon1" />
<ajaxToolkit:CalendarExtender ID="CalendarExtender1" Format ="dd-MMM-yyyy"
runat="server" PopupButtonID="calendaricon1"
TargetControlID="RA_departing_date">
</ajaxToolkit:CalendarExtender>
 
M

Milosz Skalecki [MCAD]

Howdy,


<ajaxToolkit:CalendarExtender ID="CalendarExtender1" Format ="dd-MMM-yyyy"
runat="server" PopupButtonID="calendaricon1"
TargetControlID="RA_departing_date"
OnClientDateSelectionChanged="function(sender, e) {
sender.get_element().focus(); }">
</ajaxToolkit:CalendarExtender>

Hope it helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top