Clickable but not selectable

2 posts, 0 answers
  1. Xavier
    Xavier avatar
    9 posts
    Member since:
    Feb 2014

    Posted 11 Oct Link to this post

    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!

     

  2. Tsvetomir
    Admin
    Tsvetomir avatar
    366 posts

    Posted 15 Oct Link to this post

    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.
Back to Top