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

How to iterate through buttons in toolbar

1 Answer 160 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 2
Brian asked on 10 Jan 2014, 10:08 AM
I have a toolbar that has a SQL datasource.  During the page load event, I want to iterate through the buttons to make each of them a toggle button and I use the code below.  I don't seem to understand the object model.  How do I iterate through the buttons?

If Not IsPostBack Then
    For Each button As RadToolBarButton In radtoolMonths.Items
        button.AllowSelfUnCheck = True
        button.CheckOnClick = True
        button.PostBack = True
    Next
 
End If

1 Answer, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 2
answered on 10 Jan 2014, 01:05 PM
I figured it out.
Tags
ToolBar
Asked by
Brian
Top achievements
Rank 2
Answers by
Brian
Top achievements
Rank 2
Share this question
or