Selecting newly added item in multiselect mode

3 posts, 0 answers
  1. Marcin
    Marcin avatar
    31 posts
    Member since:
    Jul 2013

    Posted 08 Mar 2016 Link to this post

    Hi,

    I encountered another issue while trying to select newly added item to the grid. The issue is, that previously selected items remains selected after forcing to select the only new item. Steps:

    1. Selected a item/items in a grid

    2. click Add button

    3. Both old and new items are selected

    Example: http://dojo.telerik.com/@Marcin/UyulO/2

     

    Best regards

    Marcin 

  2. Marcin
    Marcin avatar
    31 posts
    Member since:
    Jul 2013

    Posted 08 Mar 2016 Link to this post

    Corrected link:

    http://dojo.telerik.com/@Marcin/UyulO

  3. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2310 posts

    Posted 09 Mar 2016 Link to this post

    Hello Marcin,

    This behavior is caused by the custom logic in the dataBound event handler and the click handler of the add button. The previous item is selected, because it is in the itemsToSelect collection and the newly inserted item is selected separately in the click handler.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top