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
690
Howto: Exit Edit Mode in WebDatePicker at client side?
posted

Hi, I want to exit edit mode in a WebDatePicker immediately after a date was choosen in the drop down calendar (want to use ClientSideEvents-CalendarClosed )

but I don't know the syntax for exit edit mode. Something like (taken from grid)

function wdpSCF_CalendarClosed(webDatePicker, args) {

        if (webDatePicker != null) {                 

                   wrong: webDatePicker.editor.get_behaviors().get_editingCore().get_behaviors().get_cellEditing().exitEditMode(truetrue);             

        }

}

Parents
No Data
Reply
  • 11095
    Verified Answer
    Offline posted

    Hello,

    Thank you for contacting Infragistics!

    You can achieve the following by bluring the input element of the calendar with jQuery.

    1
    2
    3
    4
    5
    function wdpSCF_CalendarClosed(webDatePicker, args) {
    	if (webDatePicker != null) {                 
    		$(webDatePicker.get_element()).find('input').blur();
    	}
    }
    

    Let me know if you need further assistance.

Children