Toggle state in RADToolBar

3 posts, 0 answers
  1. Vaneeth
    Vaneeth avatar
    4 posts
    Member since:
    Sep 2012

    Posted 03 Sep 2012 Link to this post

    Hello , I would like to use 'Toggle states in RADToolBar (ex. Play/Pause buttons).
    Can you please help me implement it.

    Thanks and Regards,
    Vaneeth
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Sep 2012 Link to this post

    Hi Vaneeth,

    RadToolBarButton supports use as a two-state button, where the button can be "on" (checked) or "off". To enable a button as a two-state button, set its CheckOnClick property to True. When a button has CheckOnClick set to True, its Checked property specifies whether it is "On" or "Off".
    aspx:
    <telerik:RadToolBar ID="RadToolBar1" runat="server" EnableRoundedCorners="true" EnableShadows="true">
         <Items>
           <telerik:RadToolBarButton Text="Toggle button" CheckOnClick="true" Checked="true"  AllowSelfUnCheck="true" />
           </telerik:RadToolBarButton>
        </Items>
    </telerik:RadToolBar>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vaneeth
    Vaneeth avatar
    4 posts
    Member since:
    Sep 2012

    Posted 04 Sep 2012 Link to this post

    Thanks Shinu for your quick response. i need more than two states. The toggle state should depend on a enum value coming from the database.
    The image should vary for each toggle state. Button Type = "Toggle" satisfies my requirement but I am unable to use it in toolBar. Is there any easy way of achieving this?

    Thanks and Regards,
    Vaneeth
Back to Top