Kendo UI vs Knockout

5 posts, 0 answers
  1. rgullhaug
    rgullhaug avatar
    9 posts
    Member since:
    Dec 2008

    Posted 21 Sep 2011 Link to this post

    Hi,
    I can see that Kendo UI can integrate with Knockout.js, but why would I? Isn't this two products trying to accomplish the same? Or is this two different products and you recommend to use both? Can you please write a little about the differences of these two products?
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 21 Sep 2011 Link to this post

    Hi Kalle,

    Both Kendo UI and KnockoutJS are client javascript frameworks which incorporate their set of supported features. The purpose of having an integration example is that it illustrates both framework play nice when used together on the same page. This is one of the proofs that Kendo UI provides the needed extensibility end points for HTML5/JS devs to plug in other frameworks, if needed (the same holds true for the jQuery templates).

    It is not mandatory to utilize the functionality of both frameworks, and it is up to you to decide what you will need to build your application.

    Regards,
    Sebastian
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
  4. Corey Gaudin
    Corey Gaudin avatar
    57 posts
    Member since:
    Nov 2009

    Posted 18 Nov 2011 Link to this post

    Can you give an example of using the datePicker with knockout? Specifically if I bind an input to a value from a Javascript Object Property that is a date, and have the datePicker show this value, and when you change it it changes the Javascript Object Property.

    I.e.

    <input id="someDate" date-bind="value: someDate" />


    <script>
        var viewModel = {
               someDate: new Date()  /// this is gotten from the server and is of type date, not string
         };
         
        $('#someDate').kendoDatePicker();
        ko.applyBindings(viewModel);

    </script>


    Does something like this work? Or do I need to go through the hassle of converting it to a string version like I do now with every other date picker? I would like to be able to bind a date object to the control, and have a 2-way bind and it be a date when you change the control without alot of converters and such. Is this possible with Kendo UI?
  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 24 Nov 2011 Link to this post

    Hello Corey,


    I am not expert in Knockout JS, but I believe that you will need to implement value converter. Check this help topic. Please note that this functionality is not related with KendoUI.

    Best regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
UI for ASP.NET AJAX banner