Knockout Custom Binding for ComboBox Example

1 posts, 0 answers
  1. Corey Gaudin
    Corey Gaudin avatar
    57 posts
    Member since:
    Nov 2009

    Posted 05 Dec 2011 Link to this post

    Kendo UI Enthusiast,

    I created a Kendo UI Knockout Custom binding that utilize the Kendo ComboBox: Custom Kendo ComboBox Binding (jsFiddle) 

    As you can see it works well, binds the datasource to the kendo combobox, respects the observable array changes, ignores invalid changes, and sets the observable selected item back and forth.

    I basically took my jquery autocomplete version and changed it to work with ComboBox.  Here is the dropdown knockout custom binding version.  

    Here is the Date Picker Custom Knockout Binding, this allows you to bind to a Date object in your viewModel without having to worry about converting to and from a string and respects the observable property from the ViewModel.

    Hopefully we can convince Telerik Devs to create a custom knockout binding version for all the Kendo UI Controls. This would make using kendo ui controls with knockout trivial and extremely simple.
Back to Top