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

ListView with selection and action buttons

2 Answers 212 Views
ListView
This is a migrated thread and some comments may be shown as answers.
rlapao
Top achievements
Rank 1
rlapao asked on 26 Apr 2012, 11:59 PM
I have a listview uses the selectable property as true, and in the item templateI have a link to remove an item.

But, when I click the link the change event fires first.

Is there a way to know in the change event that the remove was called?

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 02 May 2012, 09:12 AM
Hello Ricardo,

No, because the change event is triggered before the click of the button. However you can handle mousedown event of the button and prevent propagation, thus the change will not fire. See the fiddle for more details:
http://jsfiddle.net/nG28f/1/

Greetings,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
rlapao
Top achievements
Rank 1
answered on 02 May 2012, 10:35 AM
Hi Nikolay ,

Thanks a lot for your reply.
Tags
ListView
Asked by
rlapao
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
rlapao
Top achievements
Rank 1
Share this question
or