We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DropDownCalendar and AutoPostBackValueChanged event

Thread ID:

Created:

Updated:

Platform:

Replies:

98153 Feb 9,2011 04:54 PM UTC Feb 10,2011 08:53 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: Tools
Israel Aece
Asked On February 9, 2011 04:54 PM UTC

Hi,

I’m using the DropDownCalendarControl version 8.104.0.30, and AutoPostBackValueChanged event occurs when this control lost focus.

On the previous version (7.403.0.9) when the date is selected, this event occurs immediately.

What would I like know is why of this behavior? Is it new? How can I configure it as in the older version?

Thanks a lot.


Varalakshmi R.S [Syncfusion]
Replied On February 10, 2011 08:53 AM UTC

Hi Israel,

Thank you for your interest in Syncfusion products.

I am afraid that I am unable to reproduce the issue reported by you. I have checked this issue in the versions mentioned by you. But still postback occurs only when the date in the DropDownCalendar is changed and when the control is out of the textbox. Please refer the following code snippet, If your intension is to cause the postback even when changing the date in the DropDownCalendarTextBox by manually invoking postback at the client side function “ClientSideOnValueChange”.


[ASPX]
AutoPostBackOnValueChanged="true" ClientSideOnValueChange="onChanged(this)" onvaluechanged="DropDownCalendarControl1_ValueChanged">



[JavaScript]
function onChanged(obj) {
__doPostBack(obj.HtmlID, obj.Value);//manually causing postback on changing values in the DropDownCalendar control
}

[C#]
protected void DropDownCalendarControl1_ValueChanged(object sender, EventArgs e)
{
Label1.Text = "Value changed to ->" + DropDownCalendarControl1.Text;
}


I have also prepared a simple sample and it can be downloaded from the below link,
981531853099733.zip

Kindly try this and let me know your concerns.

Regards,
Varalakshmi.R.S



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;