Float toolbar issue

4 posts, 0 answers
  1. Yoni
    Yoni avatar
    10 posts
    Member since:
    Feb 2013

    Posted 20 Nov 2014 Link to this post

    Hello,

    When user drags a toolbar from the command bar and make it "float" a blank space statys where te toolbar used to be dock. How do I make this blank space automatically disapear then user drag and "fload" a toolbar?

    Thank you!
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 21 Nov 2014 Link to this post

    Hello Yovi,

    Thank you for writing.

    In order to detect when a strip has become floating window you can use the FloatingStripCreated event. In it, you can iterate the remaining strips and reset their desired location:
    void radCommandBar1_FloatingStripCreated(object sender, EventArgs e)
    {
        foreach(CommandBarStripElement strip in radCommandBar1.Rows[0].Strips)
        {
            strip.DesiredLocation = Point.Empty;
        }
    }

    I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Kurt
    Kurt avatar
    11 posts
    Member since:
    Dec 2007

    Posted 01 Nov 2015 Link to this post

    The Command Bar Strip element properties 'EnableFloating' and 'EnableDragging' do not appear to have any affect on whether they can be dragged or floated currently. 2015.2.728.40.

    I am currently using the FloatingStripCreating event (with e.Cancel) to prevent them being Floated.

  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 02 Nov 2015 Link to this post

    Hello Kurt,

    I have tested these properties in the version mentioned and they appear to be working correctly on my end. Please refer to the attached video.

    Should you still experience issues, please either post a code snippet of an example allowing me to replicate the undesired behavior, or open up a new support ticket and attach a sample project there.

    Regards,
    Stefan
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top