May 17, 2012, 10:52 AM
[CLOSED] How to disable whole CycleButton with menu by javascript?
Hello:
I created a CycleButton with some menu items. How can I disable the whole CycleButton? I want to use disable() in client side, but I cannot use ID to find the control. The code is create in c# code
I created a CycleButton with some menu items. How can I disable the whole CycleButton? I want to use disable() in client side, but I cannot use ID to find the control. The code is create in c# code
var buttonKeyInput = new CycleButton
{
ID = "CycleInputButton",
ClientIDMode = ClientIDMode.Static,
ShowText = true,
ArrowAlign = ArrowAlign.Right,
ForceIcon = "tool-key-workin-16",
PrependText = Strings.PlanToolbar_BuildDataGroup_Input_Mode,
OverflowText = Strings.PlanToolbar_BuildDataGroup_Input,
};
var menuKeyInput = new Menu();
menuKeyInput.Items.AddRange(new[]
{
new CheckMenuItem{
ID ="CheckMenuDirect",
Text="Direct",
Group ="GroupInputType",
Checked =true},
new CheckMenuItem{
ID ="CheckMenuPercent",
Text="Percent",
Group ="GroupInputType",
Checked =false},
});
buttonKeyInput.Menu.AddRange(new MenuBase[] { menuKeyInput });
Last edited by Daniil; May 17, 2012 at 12:29 PM.
Reason: [CLOSED]