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

Splitbutton selected item

1 Answer 144 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Larissa
Top achievements
Rank 1
Larissa asked on 29 Mar 2017, 07:39 PM
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?

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 31 Mar 2017, 12:35 PM
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.
Tags
Toolbar
Asked by
Larissa
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or