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

How To Find Button from RadToolBarSplitButton

1 Answer 69 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Nithin
Top achievements
Rank 1
Nithin asked on 02 Nov 2010, 11:13 AM
Hello,

I have a problem to find button from RadToolBarSplitButton.   (in c#)
pls Help

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Nov 2010, 11:46 AM
Hello NithinRaj,


To access the buttons in the RadToolBarDropDown or RadToolBarSplitButton, use the Buttons collections of these objects as shown below:

Code:
RadToolBarSplitButton splitButton = (RadToolBarSplitButton)RadToolBar2.FindItemByText("splitButtonText"); // I'm having splitbutton with Text 'splitButtonText'
splitButton.Buttons[1].Visible = false; // Second item in Buttons collection


-Shinu.
Tags
ToolBar
Asked by
Nithin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or