AjaxControlToolKit question

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>
abcd [ Di, 29 Januar 2008 06:59 ] [ ID #1918831 ]

RE: AjaxControlToolKit question

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
--
Milosz


"abcd" wrote:

> 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>
>
mily242 [ Mi, 30 Januar 2008 00:53 ] [ ID #1919836 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » AjaxControlToolKit question

Vorheriges Thema: How to pass parameters into a thread?
Nächstes Thema: Error :The DetailsView 'dv' fired event ModeChanging which wasn't handled.