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

Toggle state in RADToolBar

2 Answers 160 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Vaneeth
Top achievements
Rank 1
Vaneeth asked on 03 Sep 2012, 11:21 AM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Sep 2012, 11:05 AM
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.
0
Vaneeth
Top achievements
Rank 1
answered on 04 Sep 2012, 11:14 AM
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
Tags
ToolBar
Asked by
Vaneeth
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Vaneeth
Top achievements
Rank 1
Share this question
or