AngularJS support broken

Thread is closed for posting
7 posts, 0 answers
  1. Brian Vallelunga
    Brian Vallelunga avatar
    88 posts
    Member since:
    May 2008

    Posted 28 Oct 2014 Link to this post

    Angular support is currently broken with MultiSelect.

    For reference, refer to the current official demo at: http://demos.telerik.com/kendo-ui/multiselect/angular

    The pre-selected items are not shown on load and when a new item is selected, the bound value is incorrect, showing the entire model.

    Also, when binding directly to primitive values, such as a DataSource with just an array of strings, the kendo.angular.js file throws an error in the following function:

    defadvice("ui.MultiSelect", "$angular_getLogicValue", function(){
        return $.map(this.self.dataItems(), function (item) {
            return item.toJSON();
        });
    });

    The problem is that "item" is a string, and doesn't have a toJSON method on it.
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 30 Oct 2014 Link to this post

    Hi Brian,

    For the multiselect you need to use ng-model instead, if you want to prepopulate the widget. As in this example:

    http://dojo.telerik.com/oHiWA

    Currently we are changing the implementation of the MultiSelect directive, as its current behavior differs from the expected one, so please stay tuned for changes

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Paul
    Paul avatar
    4 posts
    Member since:
    Jun 2014

    Posted 04 Nov 2014 in reply to Kiril Nikolov Link to this post

    Kiril Nikolov said:Hi Brian,

    For the multiselect you need to use ng-model instead, if you want to prepopulate the widget. As in this example:

    http://dojo.telerik.com/oHiWA



    Hi Kiril,

    The demo you provided is broken. When using ng-model, if you pre-populate $scope.selectedIds then when the multi-select initialises, the model gets wiped.  You can see it in the Dojo you linked to above. Run it without changing anything and you'll see that the paragraph displaying the value of selectedIds does not show.  It will only show if you make a change to the values in the multi-select.

    How can we get around this problem please?


  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 06 Nov 2014 Link to this post

    Hello Paul,

    It is an issue that has been resolved and will be released to clients with the official Q3 release scheduled for the next week. So please give us some more time and upgrade to the Q3 release next week, where the issue will be fixed.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Paul
    Paul avatar
    4 posts
    Member since:
    Jun 2014

    Posted 12 Dec 2014 in reply to Kiril Nikolov Link to this post

    Hi Kiril, this is still broken in 2014.3.1119.

    I'm having terrible problems with multiselect in Angular. The model value occasionally returns null even when items are selected. Is that a known fault?

    Thanks
  7. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 15 Dec 2014 Link to this post

    Hello Paul,

    Can you send us a sample that we can test, in order to assist you further?

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  8. Paul
    Paul avatar
    4 posts
    Member since:
    Jun 2014

    Posted 18 Dec 2014 in reply to Kiril Nikolov Link to this post

    The solution was to use k-ng-model instead of ng-model.  I'd been using ng-model for compatibility with version 2014.2.1008 of Kendo UI.

    Thanks
Back to Top
Kendo UI is VS 2017 Ready