I'm sure this is a simple question... I have a WebDatePicker on my form and want it to auto-postback when I change the date displayed either by typing a new date or selecting from the calendar.
I have set 'Autopostbackflags-valuechanged' to 'On' and have an OnValueChanged handler. I am still finding however that I have to click off the control before the postback occurs. I would have expected that as soon as the calendar closed the value would change and trigger the postback...
On a connected note - I really want this to occur without doing a full postback - this is an Ajax control so what do I need to do to just get my OnValueChanged handler to be called without doing a full postback?
Thanks for any suggestions.
Hi,
were you able to resolve this issue ?
Yes you can force a postback from the javacript. Sorry my idea was to set WebMonthCalendar's AutoPostBackFlags-SelectionChanged to On, this will make a postback when you click to select date
<ig:WebDatePicker ID="WebDatePicker1" runat="server" DropDownCalendarID="WebMonthCalendar1"> </ig:WebDatePicker> <ig:WebMonthCalendar ID="WebMonthCalendar1" runat="server" AutoPostBackFlags-SelectionChanged="On"> </ig:WebMonthCalendar>
This would trigger a client-side event - I guess I would then need to force a postback from the javascript?
Hi,WebDatePicker makes postback without click off the control when 'EditMode' is set to 'CalendarOnly', but this will disable entering date from the keyboard. Otherwise you can try with something like this:
I have the same problem, and hope that Infragistics can provide a reply.
I have tried getting around this by using a separate WebCalendar and setting the WebCalendarID of the WebDatePicker, and then binding to the postback events of the WebCalendar.
That presented its own set of problems, and I finally had to resort to putting a separate button next to the WebDatePicker to accomplish a postback in a way that would be intuitive to the user, even if it does require another button click.