select ALL not working for server filtering true

4 posts, 0 answers
  1. Mohanapriya
    Mohanapriya avatar
    3 posts
    Member since:
    Jan 2015

    Posted 08 Mar 2018 Link to this post

    This is very urgent production issue.

    I have the below function which is attached to my multiselect 'select' event.

    function SelectAllMultiSelect(e) {
     var dataItem = this.dataSource.view()[e.item.index()];
     var values = this.value();
     if (dataItem.Value === "ALL") {
            this.value(" ");
       } else if (values.indexOf("ALL") !== -1) {
          values = $.grep(values, function (value) {
     return value !== "ALL";
          });
     this.value(values);
        }
    }

     

    This works fine for controls which don't have server filtering set to true. For the control set to server filtering true, this is not working. It was working in older version 2015 and now, stopped working in 2017. Even if I select a new item, 'ALL' doesn't go away. Please let me know the resolution.

     

    Thanks.

  2. Dimitar
    Admin
    Dimitar avatar
    433 posts

    Posted 09 Mar 2018 Link to this post

    Hello Mohanapriya,

    I was able to reproduce abnormal behavior with Telerik UI for ASP.NET MVC 2017.3.1026. The issue is reproducible with Kendo UI 2017.3.1026 as well.

    The good news is that the problem is fixed and not reproducible with our consecutive releases R1 2018 and R1 2018 SP1.
    The following Dojo snippet shows the scenario with R1 2018 SP1 and it is working as expected on my side. Note that as there is no item with value ALL in the demo data, I substituted it in the handler logic with the item with value 1 - "Chai". So selecting "Chai" acts as selecting ALL. The following screencast shows the same logic working as expected on the MultiSelect Events MVC demo with R1 2018 SP1. Upgrading to our latest version will resolve the issue.

    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.
  3. Mohanapriya
    Mohanapriya avatar
    3 posts
    Member since:
    Jan 2015

    Posted 09 Mar 2018 in reply to Dimitar Link to this post

    Hi,

     

    We only recently upgraded from 2015 to 2017 version in production and we had some other UI formatting issues we had to fix. It is a big process within the organization to upgrade versions and it is a very time consuming process. Is there a workaround I could apply for this? That would be greatly appreciated.

     

    Thanks.

    Priya.

  4. Dimitar
    Admin
    Dimitar avatar
    433 posts

    Posted 13 Mar 2018 Link to this post

    Hello Priya,

    The issue was fixed by the following commit in kendo.multiselect.js. A workaround for the issue is to override the value method of the MultiSelect as shown in the following Dojo snippet. I hope it will resolve the issue faced on your side as well.

    Best 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