This is a migrated thread and some comments may be shown as answers.

Focus event on MVVM

1 Answer 257 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Best Doctors
Top achievements
Rank 1
Best Doctors asked on 14 Jan 2015, 04:04 PM
Hi, my question is very simple... How can i bind the focus event in a text field or any other control using MVVM?

I tried it using this way but it didn't work

<input id="startDate" name="startDate" data-role="datepicker"  data-bind="value: selectedStart, events: { focus: EffectiveDateFocus }" />


Thanks in advanced

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 16 Jan 2015, 09:19 AM

Hello,

 

With MVVM you can bind events that are triggered by the widget, and in this case the Kendo UI DatePicker does not have focus event, therefore you can not bind to it. You can see all the DatePicker events listed here:

 

http://docs.telerik.com/kendo-ui/api/javascript/ui/datepicker#events

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MVVM
Asked by
Best Doctors
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or