Multiselect inheritance and MVVM (possible bug)

3 posts, 1 answers
  1. Matjaz
    Matjaz avatar
    94 posts
    Member since:
    Jun 2014

    Posted 02 Sep 2014 Link to this post

    Like the title says. :)
    The problem is that when getting selected value only first value is returned not array of all values.
    Steps to reproduce: Add 2 items to both (normal and inherited) multiselect and carefully watch console. Multiselect returns array, but inherited multiselect returns only object of the first selected item.

    dojo example
  2. Answer
    Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 04 Sep 2014 Link to this post

    Hello Matjaz,

    The problem will occur because the multiselect uses a widget specific value binding that will not be used for the custom widget. You can set the multiselect value binding as value binding for the custom widget using the code in the snippet below in order to avoid the problem:
    kendo.data.binders.widget.matjazmultiselect = {
        value: kendo.data.binders.widget.multiselect.value
    };


    Regards,
    Daniel
    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. Matjaz
    Matjaz avatar
    94 posts
    Member since:
    Jun 2014

    Posted 05 Sep 2014 in reply to Daniel Link to this post

    It is working.
    Thank you.
Back to Top