MultiSelectFor - javascript error when deleting selected item

2 posts, 0 answers
  1. Paul
    Paul avatar
    28 posts
    Member since:
    Mar 2013

    Posted 19 Jun 2015 Link to this post

    Hi there,

    I am using the MultiSelectFor control bound to a model property in a MVC 5 razor webpage. I am able to select multiple items and create data in our backend system - however, I am running into a few problems when editing this data.

    Model property:

    public List<string> Teams { get; set; }


    Editor Template:


    @model IList<string>
    @Html.Kendo().MultiSelectFor(m => m)
         .Placeholder("Please Select")

    The list it is bound to is an IEnumerable<SelectListItem>

    When the screen loads, everything appears fine - the multiselect field is bound to the correct items and displays correctly.

    However, if I attempt to remove one of the selected items by clicking on the delete option, I receive a javascript error in kendo.all.min.js:

    0x800a138f - JavaScript runtime error: Unable to get property 'top' of undefined or null reference



    The multiselect then appears to have lost it's list of values, which will only reappear if I start typing.

    Any ideas what could be the issue here? If I expand the list first prior to deleting, I receive no issues when removing a selected item.







  2. Georgi Krustev
    Georgi Krustev avatar
    3689 posts

    Posted 19 Jun 2015 Link to this post

    Hello Paul,

    The described issue is a known bug that is already addressed. Please upgrade to the latest internal build of Kendo UI / UI for ASP.NET MVC. You can also check the next official release (Q2 2015) due to the end of this month.

    Georgi Krustev
    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
  3. UI for ASP.NET AJAX banner
Back to Top