All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
To get the split button, you can use the following approach: 1. Set a custom attribute to the SplitButton. For example:
<
telerik:RibbonBarSplitButton
SplitButtonValue
=
"SplitButton1"
Size
"Medium"
Text
"Button"
ImageUrl
"~/Img.jpg"
/>
function
findSplitButton(buttonValue){
var
ribbon = $find(
"RadRibbonBar1"
);
for
(
i = 0; i < ribbon.get_tabs().get_count(); i++) {
tab = ribbon.get_tabs().getTab(i);
j = 0; j < tab.get_groups().get_count(); j++) {
group = tab.get_groups().getGroup(j)
k = 0; k < group.get_items().get_count(); k++) {
item = group.get_items().getItem(k);
customAttribute = item.get_element().getAttribute(
'SplitButtonValue'
)
if
(customAttribute !=
null
&& customAttribute == buttonValue){
alert(item.get_text());
}