I have an Infragistics.WebUI.WebSchedule.WebDateChooser on a form and I handle the ValueChanged event as follows ...
this.calendar1.ValueChanged += new Infragistics.WebUI.WebSchedule.WebDateChooser.ValueChangedEventHandler(this.sp1);
private void sp1(object sender, Infragistics.WebUI.WebSchedule.WebDateChooser.WebDateChooserEventArgs e)
{ this.txtBox1.Text = SPPConvert.ToString(this.calendar1.Value); }
This simple method populates a textbox with contents of the WebDataChooser and fires when I select the date using the dropdown OR when I manually enter a date and press enter. It does not fire if I manually enter a date and simply tab off the control. How can I get it to do this?
Any help here is greatly appreciated - I'm stuck!
Thanks,
Karen.
HI KarenMcd,
You need to set the WebDateChoosers postback property to true.
Here is a code snippet..
WebDateChooser1.AutoPostBack.ValueChanged = true;
Here is a help link
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Infragistics2.WebUI.WebDateChooser.v8.1~Infragistics.WebUI.WebSchedule.WebDateChooserAutoPostBack_members.html
Hello Matt!
I have a similiar problem. I set the autoPostBack on true, once in the html-part, once in the program. But i only get the autopostback, if i press the Return-Button after changing the date or pick the date from the calendar. If i leave the field with the tabulator i don't get a autoPostback. What are i'm doing wrong? Or how can get the webDateChooser autopostback when i leave the field with the curso?
Thanks, Martin.
I have set the Mindate for the Webdatechooser.i want to differentiate the other dates before MinDate that is setting the background color or the date in Striked format.Can any one help me in doing this Please.........