When I try to disable the a SplitButton in the toolbar, it is not working as I would expect.
My problem is this :
when I click on an item of the SplitButton, I want the SplitButton to be disabled (Not just the item, the entire SplitButton). When I clcik the item that was already selected, it's working fine but with any other one the SplitButton is grayed but I can still acces it and click the other item(see file). When I try to re-enable it the first item is still disable. I can easily go around this by disabling all the items, but it's probably not how it's supposed to be.
Hope you fix this, or tell me I'm doing something wrong.
Js code :
My problem is this :
when I click on an item of the SplitButton, I want the SplitButton to be disabled (Not just the item, the entire SplitButton). When I clcik the item that was already selected, it's working fine but with any other one the SplitButton is grayed but I can still acces it and click the other item(see file). When I try to re-enable it the first item is still disable. I can easily go around this by disabling all the items, but it's probably not how it's supposed to be.
Hope you fix this, or tell me I'm doing something wrong.
Js code :
function
buttonClicked(sender, args) {
var
toolbar = $find(
"<%= RadToolBar1.ClientID %>"
);
var
items = toolbar.get_items();
items.getItem(0).disable();
}