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

Float toolbar issue

3 Answers 100 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Yoni
Top achievements
Rank 1
Yoni asked on 20 Nov 2014, 05:51 PM
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!

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 21 Nov 2014, 10:54 AM
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.

 
0
Kurt
Top achievements
Rank 1
answered on 01 Nov 2015, 11:33 PM

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.

0
Stefan
Telerik team
answered on 02 Nov 2015, 07:26 AM
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
Tags
CommandBar
Asked by
Yoni
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Kurt
Top achievements
Rank 1
Share this question
or