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

Runtime addition/deletion of buttons to tool bar

1 Answer 35 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Subha
Top achievements
Rank 1
Subha asked on 02 Feb 2011, 10:02 PM
Hi,

We have a requirement to build runtime silverlight tool bar based on a standard list of items. Here are the following things that we want to achieve with this toolbar.
1. Users should be able to select what to appear and what not to. 
2. User should be able to drag and drop tool bar anywhere on the window(Horizontal or vertical)

I would appreciate if you can review these and let me know if these can be achieved and also if possible provide a sample code.  I am using 2010 Q2 version.

Thanks,
Subha

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 08 Feb 2011, 10:50 AM
Hi Subha,

If you have a list of all UI elements that can be added inside the RadToolBar and display them in a ListBox, you can either handle the ListBox SelectionChanged() event or add a Button to create the UIElements and add them inside a RadToolBar.

Also, you can use the RadDragAndDropManager to create your own dragging logic for the RadToolBar. More information about this control you can find here.

I prepared a sample project to help you get started. Have a look at it and let us know if you need more info.

All the best,
Tina Stancheva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
ToolBar
Asked by
Subha
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or