The selected items are not displayed when you deselect one of them.

5 posts, 0 answers
  1. Federico
    Federico avatar
    28 posts
    Member since:
    Sep 2017

    Posted 12 Oct Link to this post

    When you deselect an item, this element is removed from the value.
    So from 28 steps to 27 elements.
    But in the multiselect does not display any element.
    But if I join the viewmodel, that variable is made up of 27 elements.

    The selected items are not displayed when you deselect one of them.

    This happens if only the selected ones are the same as the datasource.

    it's possible ? has it ever happened to you?

     

    <select id="a" data-role="multiselect"
                    data-value-primitive="true"
                    data-text-field="name"
                    data-value-field="id"
                    data-bind="value: doc.Value,
                        enabled: doc.S,
                        source: doc.Source,
                        events: {
                            dataBound: doc.onDataBound,
                            select: doc.onSelect,
                            deselect: doc.onDeselect,
                            change: doc.onChange
                            }">
    </select>

     

     

     

  2. Federico
    Federico avatar
    28 posts
    Member since:
    Sep 2017

    Posted 12 Oct Link to this post

    this is the js error
    Uncaught TypeError: a.select(...).done is not a functionr.extend._removeTag @ kendo.all.js:32412r.extend._tagListClick @ kendo.all.js:32422n.extend.proxy.n.isFunction.d @ jquery.min.js:2n.event.dispatch @ jquery.min.js:3n.event.add.r.handle @ jquery.min.js:3
  3. Dimitar
    Admin
    Dimitar avatar
    225 posts

    Posted 16 Oct Link to this post

    Hello Federico,

    On the following Dojo example you can find a Kendo UI MultiSelect implementation with MVVM, where a similar configuration is used for the widget. With it, selecting/deselecting an item properly triggers the change event of the widget and the value is also updated. 

    Can you review the example and modify it, so that the described issue can be reproduced? Also, can you please elaborate a bit more on the select/deselect issue and provide steps to replicate this behavior?  

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  4. Federico
    Federico avatar
    28 posts
    Member since:
    Sep 2017

    Posted 16 Oct in reply to Dimitar Link to this post

    I have the same data in the datasource in the value.
    after I saved the data in db
    when updating the multiselect: If you deselect an element, kendo prints a console error and the multiselect is empty (but if the datasource is full).

    I can not provide an example, the application is complex .

     

  5. Dimitar
    Admin
    Dimitar avatar
    225 posts

    Posted 16 Oct Link to this post

    Hello Federico,

    We will need a runnable sample in order to troubleshoot the cause of the problem, investigate if this is a bug and handle the scenario appropriately. May I ask you to isolate just the MultiSelect implementation with hardcoded data (or using the Kendo UI Demo services), so that we can reproduce the error on our end?

    Also, you can review the Kendo UI Demos Service Repository, where the service implementation that is used for the official demos can be found.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top