Hide items on toolbar resize and display them in dropdown

4 posts, 1 answers
  1. Lighthouse Developer
    Lighthouse Developer avatar
    34 posts
    Member since:
    Feb 2010

    Posted 08 Jul 2010 Link to this post

    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.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 12 Jul 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lighthouse Developer
    Lighthouse Developer avatar
    34 posts
    Member since:
    Feb 2010

    Posted 12 Jul 2010 Link to this post

    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
  5. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 12 Jul 2010 Link to this post

    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
Back to Top