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

How to highlight selected list Item in ListView for mobile

3 Answers 331 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vinodh K
Top achievements
Rank 1
Vinodh K asked on 27 Feb 2013, 12:50 PM

Hi All,

Please find the attachment for details.


Thanks & Regards,
Vinodh Kumar

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 27 Feb 2013, 02:21 PM
Hi Vinodh,

To achieve that, please hook up to the click event of the widget. In the event handler you can toggle a class that indicates the selected state.
function onClick(e) {
    e.item.toggleClass("listview-selected");
}

For your convenience I prepared a small example: http://jsbin.com/igolev/52/edit
I hope this will help.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Hemant
Top achievements
Rank 1
answered on 24 Jul 2014, 12:21 PM
Just want share this quick solution for removing class from already selected item. Here's a update jsbin link:

http://jsbin.com/igolev/127/edit
0
perico
Top achievements
Rank 1
Iron
answered on 27 Jun 2017, 02:19 PM
Thank you very helpful !
Tags
Grid
Asked by
Vinodh K
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Hemant
Top achievements
Rank 1
perico
Top achievements
Rank 1
Iron
Share this question
or