This is a migrated thread and some comments may be shown as answers.

Selecting newly added item in multiselect mode

2 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 08 Mar 2016, 01:08 PM

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 Answers, 1 is accepted

Sort by
0
Marcin
Top achievements
Rank 1
answered on 08 Mar 2016, 01:11 PM

Corrected link:

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

0
Dimiter Madjarov
Telerik team
answered on 09 Mar 2016, 01:58 PM

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!
 
Tags
Grid
Asked by
Marcin
Top achievements
Rank 1
Answers by
Marcin
Top achievements
Rank 1
Dimiter Madjarov
Telerik team
Share this question
or