Broken ng-model binding in 2016.2.714

3 posts, 0 answers
  1. Marcel
    Marcel avatar
    35 posts
    Member since:
    Apr 2011

    Posted 12 Sep Link to this post

    Using the latest version in combination with angular 1.5.8 using components it appears that the multi-select doesn't show anything when i use an ng-model binding.
    I created an example at to show you the problem.
    I know i can use k-ng-model to successfully bind, but that raises other problems in my application due to custom directives that require ng-model, angular validation, etc.

    Is this a known (broken) issue and is there a workaround to solve this problem ?
  2. Marcel
    Marcel avatar
    35 posts
    Member since:
    Apr 2011

    Posted 13 Sep in reply to Marcel Link to this post

    i eventually found out i can use the $postLink method to set the value of the multi-select so it reflects the ng-model.
    vm.$postLink = function () {

    However, now i'm running into other problems using ng-required when the initial binding is an empty array.
    It stays valid until i add and remove an item.       

  3. Dimiter Topalov
    Dimiter Topalov avatar
    314 posts

    Posted 13 Sep Link to this post

    Hi Marcel,

    Please check out the following section of our documentation for an explanation about the reported issue, and possible workarounds:

    I hope this helps.

    Dimiter Topalov
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top