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

Hide items on toolbar resize and display them in dropdown

3 Answers 129 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Lighthouse Developer
Top achievements
Rank 1
Lighthouse Developer asked on 08 Jul 2010, 10:12 PM
Hi,
The scenario I have is the following:
I want a toolbar with 1-n buttons.When the window resizes, I want the toolbar to shrink/expand accordingly and the items that dont fit in the toolbar to be shown in a dropdown menu.
Can I make this scenario using toolbar or another rad control?

Thank you very much for your support.

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 Jul 2010, 10:43 AM
Hello,

Currently RadToolBar doesn't support this functionality, but it's already logged as a feature request and will be considered.  Actually you raised its priority, thank you for sending your feedback.

Best regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lighthouse Developer
Top achievements
Rank 1
answered on 12 Jul 2010, 10:52 AM
Thank you very much Yana

Because I havent use radtoolbar until now,
is there an event to use if I try to implement myself the functionality I described early?
Can you give me some directions or info to look up?
Thank you very  much again
0
Accepted
Yana
Telerik team
answered on 12 Jul 2010, 11:20 AM
Hello,

You can subscribe to resize() event of the page and its handler check the width of the toolbar using its client-side API, if the width of the toolbar is bigger than the width of the page, you can remove the most right buttons and add them to a splitbutton. Adding and removing buttons is described in this help article.

Best wishes,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ToolBar
Asked by
Lighthouse Developer
Top achievements
Rank 1
Answers by
Yana
Telerik team
Lighthouse Developer
Top achievements
Rank 1
Share this question
or