Splitbutton selected item

2 posts, 0 answers
  1. Larissa
    Larissa avatar
    10 posts
    Member since:
    Jun 2014

    Posted 29 Mar Link to this post

    I'm having trouble finding much in the way of documentation on the split button, but, given this demo: http://demos.telerik.com/kendo-ui/toolbar/events, let's say that I select Action 2 from the splitButton, and when I reopen the splitButton I want to indicate that Action 2 is what is currently selected, how might I go about that?
  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1268 posts

    Posted 31 Mar Link to this post

    Hello Larissa,

    By default selected styles are not applied to the selected button in the SplitButton. You can however apply such through jQuery and CSS. Here's a sample dojo, which shows how this can be done. The custom selectedButton class is set to the selected button in the SplitButton's click handler and this class is used in a CSS rule, which applies background color to the corresponding element:
    .selectedButton {
      background-color: #b6bdca !important;
    }

    I hope this information was helpful.

    Regards,
    Ivan Danchev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top