kendo.init does not work

5 posts, 0 answers
  1. Graham
    Graham avatar
    16 posts
    Member since:
    Jun 2011

    Posted 04 Sep 2014 Link to this post

    Hi guys.
    Kendo UI for ASP.NET MVC 2014.2.903 has broken my application down. You seem to miss  
    "result = $(element).data("kendo" + widget.fn.options.prefix + widget.fn.options.name);"  in new version.
    So, in the bottom of kendo.init you do not initialize anything.

  2. Graham
    Graham avatar
    16 posts
    Member since:
    Jun 2011

    Posted 04 Sep 2014 in reply to Graham Link to this post

    Sorry. I mean kendo.initWidget. And I found the place where you are initializing the widget. 
  3. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 04 Sep 2014 Link to this post

    Hi Graham,

    I am not sure that I understand your case, as kendo.init works fine in our test cases. Can you please provide a test case of the regression? We will examine it and address it as soon as possible. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  4. Graham
    Graham avatar
    16 posts
    Member since:
    Jun 2011

    Posted 04 Sep 2014 in reply to Petyo Link to this post

    My view looks like
      <div data-role="tabstrip" data-animation="false" data-bind="kendoTabStrip: {activate: bookingWindow.onTabActivated, selected:0}">
      </div>
    Ko binding:
    ko.bindingHandlers.kendoTabStrip = {
    init: function (element, valueAccessor) {
    var options = ko.utils.unwrapObservable(valueAccessor());

    var tabStrip = $(element)
    .data("kendoTabStrip");

    if (tabStrip == undefined) {
    kendo.init($(element));
    tabStrip = $(element).data("kendoTabStrip");
    }

    if (options.selected != undefined)
    tabStrip.select(options.selected);

    if (options.activate) {
    tabStrip.bind("activate", options.activate);
    }
    }
    };  

    and the string in bold does not work after updating. Not sure if it is sufficient. I am trying to figure out what is wrong.



     





  5. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 08 Sep 2014 Link to this post

    Hello Graham,

    I can't really determine what goes wrong in this case. As a general advice, you may try simplifying the case further, like testing it in outside of the KO context. It seems to be something very peculiar, because if kendo.init does not work most (if not all) of our demos would not work too. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top