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

Clickable but not selectable

1 Answer 73 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Xavier
Top achievements
Rank 1
Xavier asked on 11 Oct 2019, 03:18 PM

Hi, I would like for the listview items to be clickable but not selectable. By that I mean that a user can click on one, and the OnChange event to occur. However, I do not want the item to take on the "selected" styles.  I would like the styles to remain the same as an unselected item. How might I accomplish this? 

Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 15 Oct 2019, 08:02 AM

Hi Xavier,

When an item within the content of the Kendo UI ListView is selected, certain styles are applied such as the background color. If you would like to not apply a background to the selected items, I would recommend setting the following style:

    <style>
      .k-state-selected{
        background-color: unset;
      }
    </style>

Let me know how the suggestion above works out for you.

 

Kind regards,
Tsvetomir
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ListView
Asked by
Xavier
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
Share this question
or