Kendo Multiselect data disappear after kendo UI 2016 upgrade

Thread is closed for posting
2 posts, 0 answers
  1. NIMMY
    NIMMY avatar
    1 posts
    Member since:
    Sep 2015

    Posted 24 Nov 2016 Link to this post

    We were using kendo 2013 and have upgraded to version 2016. After this upgrade we are facing an issue with kendo multi-select control which uses ajax call to bind the data.(No issue with pre-filled Multi-select controls) The multi-select gets filled with respect to the data selected on a kendo dropdown.
    The multi-select value disappear in some scenarios. We use .value to set the value of multi-select. It sometimes get applied and sometimes not.

    Please see the videos for more information.


    Following are the controls used.

    **** Drop Down *********

          @(Html.Kendo().DropDownListFor(m => m.SelectedViewState)
           .DataSource(source => source
                        .Read(read => read.Action("Load", "Controller")).ServerFiltering(true))
          .Events(e => e.Change("onChange"))
                   .HtmlAttributes(new { style = "width: 180px" }))

    **** Multi select *********

    @(Html.Kendo().MultiSelectFor(model => model.Payer)
             .Placeholder("Select Payers...")
             .DataSource(source =>
                 source.Read(read =>
                     read.Action("LoadMultiSelect", "Controller");
              .ItemTemplate("<dl>" +
                             "<dd class='first-item'>${ data.Name }</dd>" +
                             "<dd> ${ data.Code }</dd>" +
             .HtmlAttributes(new { style = "width:95%;height:26px;overflow: auto;position:relative;" })
    *********Code used to fill multi-select********  

    function onChange(e) {
        var value = $("#SelectedViewState").val();
        var dropDown = e.sender;
        var query = new;
        var data = query.filter({ field: "ViewStateId", operator: "eq", value: value }).data;
        if (data != undefined && data.length!=0) {
            var setting = data[0].Setting;
            var model = JSON.parse(setting).ViewStates;
            var payerListData = '[' + model.Payer + ']';//data in  model.Payer "{"Id":"40eb0d8c-6021-403c-92b0-efdc4865ef7c","Name":"(HOSPICE) ANDROSCOGGIN12"}"
            var payerLists = JSON.parse(payerListData);
            var payerSelect = $('#Payer').data('kendoMultiSelect');
            var payerGuidArray = [];
            $.each(payerLists, function (index, objValue) {
  2. Martin
    Martin avatar
    104 posts

    Posted 28 Nov 2016 Link to this post


    You have submitted your technical inquiry under the Telerik Platform product. Telerik Platform is an end-to-end solution for building and distributing mobile applications with a set of application development tools and services. 

    That is why I'd suggest that you consult the respective product forums here (requires a license) or community forums.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top