How to iterate through buttons in toolbar

2 posts, 0 answers
  1. Brian
    Brian avatar
    21 posts
    Member since:
    Jul 2013

    Posted 10 Jan 2014 Link to this post

    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
  2. Brian
    Brian avatar
    21 posts
    Member since:
    Jul 2013

    Posted 10 Jan 2014 Link to this post

    I figured it out.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top