Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Ultratoolbar AllowCustomize property unresponsive

Last post 10-24-2008 12:21 by [Infragistics] Mike Dour. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 12-21-2007 17:02

    • xdor
    • Not Ranked
    • Joined on 12-21-2007
    • Points 20

    Ultratoolbar AllowCustomize property unresponsive

    1. Create a form
    2. Add an UltraToolbarsManager to it
    3. Add a toolbar to the manager and maybe a few button controls
    4. Set the AllowCustomize property to the False value for either the manager or the toolbar or both
    5. Run the form
    6. Notice that the right-click menu and customize options are still available
    7. Notice the unchecking the toolbar will cause the toolbar to disappear and there is no way to get it back

    For reference: 

    toolbar.Settings.AllowCustomize = Infragistics.Win.DefaultableBoolean.False

    Did I miss something or is this the way things suppose to work when AllowCustomize = "False"?

    • Post Points: 20
  • 01-02-2008 10:28 In reply to

    Re: Ultratoolbar AllowCustomize property unresponsive

    Answer

    The AllowCustomize settings determines whether the user is allowed to customize the tools within the toolbar, not the visibility of the toolbar, so this is normal behavior. And the reason you cannot get the toolbar back is probably because it is the only toolbar on the form and when it is hidden, there is no dock area to right-click on to bring up the toolbar list.  It sounds like you want to use AllowHiding instead. Try settings that to False and it should remove the toolbar from the list of toolbars for customization.

    • Post Points: 35
  • 04-09-2008 10:06 In reply to

    • ishpal
    • Not Ranked
    • Joined on 04-09-2008
    • Points 40

    Re: Ultratoolbar AllowCustomize property unresponsive

    Seems like the AllowCustomize is still unresponsive.

    I have the following settings, but when I run the application the user can still right click on the toolbar and open the 'Customize' window.

     this.tUltraToolbarsManager1.ToolbarSettings.AllowCustomize = Infragistics.Win.DefaultableBoolean.False;
     

         foreach (UltraToolbar toolbar in tUltraToolbarsManager1.Toolbars)
            toolbar.Settings.AllowCustomize = Infragistics.Win.DefaultableBoolean.False;
     

    I want to turn off tool bar customization by user, how is that possible ? 

     

    -Ishpal. 

    • Post Points: 20
  • 04-09-2008 10:38 In reply to

    Re: Ultratoolbar AllowCustomize property unresponsive

    Answer

    Set RuntimeCustomizationOptions to None on the UltraToolbarsManager

    • Post Points: 20
  • 04-09-2008 10:51 In reply to

    • ishpal
    • Not Ranked
    • Joined on 04-09-2008
    • Points 40

    Re: Ultratoolbar AllowCustomize property unresponsive

    that seems to work.

     Thanks very much 

    • Post Points: 20
  • 09-04-2008 8:53 In reply to

    • GaryGo
    • Not Ranked
    • Joined on 09-04-2008
    • Points 45

    Re: Ultratoolbar AllowCustomize property unresponsive

    That works for me, too. Personally, I think that full dock-ability and customization should be false by default, but RuntimeCustomizationOptions is the property that can totally kill the customization menu. This is on the manager, not the toolbar, so if you want one toolbar to be customizable and another not, then you need different managers.

    • Post Points: 5
  • 10-24-2008 12:09 In reply to

    • hriarh
    • Not Ranked
    • Joined on 01-18-2008
    • Points 70

    Re: Ultratoolbar AllowCustomize property unresponsive

    I need to stop the "Customize..." context menu that comes when you right-click on a ultra toolbar. How can I do that? I set

     ultraToolbarsManager1.RuntimeCustomizationOptions = RuntimeCustomizationOptions.None;

     But, this does not help. Any help is much appreciated.

    • Post Points: 20
  • 10-24-2008 12:21 In reply to

    Re: Ultratoolbar AllowCustomize property unresponsive

    Handle the BeforeToolbarListDropdown event and set Cancel to True.

    • Post Points: 5
Page 1 of 1 (8 items)
Powered by Community Server (Commercial Edition), by Telligent Systems