Hello, I am trying to implement the AutoComplete and DatePicker controls in an edit form I am making. I do not want the edit controls visible all the time, so I have been working on some functions to reverse the effects of .kendoAutoComplete() and .kendoDatePicker().
The functions seem to be doing what I had hoped (if there is a better way, please let me know). However, in the code that makes my input turn into a kendoDatePicker, if I add a .focus() to the end of the line it does add focus to the edit control, but the control will not drop down the date picker when the edit control has focus.
Here is a link to an example: http://jsfiddle.net/jkappel/MEKqs/
if you modify the line that reads:
if (that.attr('ctl') == 'date') that.kendoDatePicker();
else that.kendoAutoComplete().focus();
to read:
if (that.attr('ctl') == 'date') that.kendoDatePicker().focus();
else that.kendoAutoComplete().focus();
the date picker will not ever drop down.
I realize my scenario is a bit unique, but if anyone can help I would sure appreciate it!
The functions seem to be doing what I had hoped (if there is a better way, please let me know). However, in the code that makes my input turn into a kendoDatePicker, if I add a .focus() to the end of the line it does add focus to the edit control, but the control will not drop down the date picker when the edit control has focus.
Here is a link to an example: http://jsfiddle.net/jkappel/MEKqs/
if you modify the line that reads:
if (that.attr('ctl') == 'date') that.kendoDatePicker();
else that.kendoAutoComplete().focus();
to read:
if (that.attr('ctl') == 'date') that.kendoDatePicker().focus();
else that.kendoAutoComplete().focus();
the date picker will not ever drop down.
I realize my scenario is a bit unique, but if anyone can help I would sure appreciate it!