Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
900
Postback when value changes - via selection from calendar and using keyboard to input value
posted

Hi,

How can I postback when I use the keyboard to change the value in the WebDatePicker? I know how to accomplish this by selecting from the calendar.

Thank you,

Trent

Parents
  • 24497
    posted

    Hi Trent,

    You may enable autopostback on enter key. Similar way can be triggered a postback on lost focus (value change). To trigger postback on other keys or events, application may process corresponding client side events (like KeyUp), check event/keyCode, check current value in editor (if it is valid and complete), etc, and call __doPostBack(sender.get_uniqueID(), '') or use similar statements.

    Example for autopostback:

    <ig:WebDatePicker ID="WebDatePicker1" runat="server">
      
    <AutoPostBackFlags EnterKeyDown="On" />
    </ig:WebDatePicker>

Reply Children