Preselect items not working with server virtualization

2 posts, 0 answers
  1. Hema
    Hema avatar
    20 posts
    Member since:
    Jul 2015

    Posted 12 Apr Link to this post

    Here is my scenario . When the page loads initially , I will select some items from the multiselect and when they go back to the same screen , I need to show those items as already selected . My problem is , if I go back , the widget displays only the last selected item ( sometimes I get all the items in the list, but this is inconsistent )  . I even tried to clear the filter and reset the datasource , but it takes the last filter value and displays only the last selected item( not all the items selected list ) . Please advice on what I am doing wrong .

    $scope.init= function()

    ar kmsList = $('#benchmarkDropDown').data("kendoMultiSelect");
                if( kmsList != null )
                    if( kmsList.dataSource.filter != null  ){



    <select kendo-multi-select id="benchmarkDropDown" class="k-content"
                       k-options="benchmarkDropdownOptions" ng-disabled="ui.disableBenchmarkMultiSelect" style="width: 100%">

    In the factory 

                managerInsightsDatabaseFactory.benchmarkDropdown = new
                                            type: "json",
                                            transport: {
                                                read: "rest/reporting/filteredBenchMarks"
                                            valuePrimitive: true,
                                            schema: {
                                                model: {
                                                    fields: {
                                                        name: { type: "string"},
                                                         id: { type: "string" }
                                            pageSize: 100,
                                            serverPaging: true,
                                            serverFiltering: true




  2. T. Tsonev
    T. Tsonev avatar
    2760 posts

    Posted 15 Apr Link to this post


    Please accept my apologies for the delayed response.

    I've answered your forum post regarding the How-To. That should be fixed now.

    I also notice that you don't use an ng-model binding on the MultiSelect instance.
    Perhaps setting this can save you the trouble of calling the value method.

    Let me know if you want to try the method suggested in the how-to.
    If not, we can continue troubleshooting your approach here.

    T. Tsonev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top