Hi,
I'd like to know if it's possible to "enable" the rename option on the context menu. If it isn't possible, how should I add the option to the context menu and how could I edit it directly on the pane.
Thanks!
Hello Fernando,
Thank you for posting in our forum.
Please check the following forum thread where same question were discussed http://es.infragistics.com/community/forums/t/68870.aspx.
Please let me know if you need any additional information.
Thank you for using Infragistics Controls.
Hi Milko,
The link doesn't resolve the problem I have. I actually don't want to create a new ContextMenu, I wan't to add a Rename Option to the existing one. Also I would like to be able to have a "TextBox" or something next to the pane so I can actually rename the pane.
Hello Bautista,
Thank you for your feedback.
If you set UseDefaultContextMenus property to true UltraDockManager sets internally context menu. This menu is not exposed and you cannot access it. So the only way to change this menu is to create your own menu as described in forum post I have shown you.
Regarding the text box you may achieve this by implementing IUIElementCreationFilter. You can check the following link where adding a control to the pane in dock manager were discussed http://es.infragistics.com/community/forums/t/65613.aspx.
Thanks for your answer. So if I need to create a new menu, could you provide the code to reproduce the existing options on the menu and their actions ( Dockable, Hide, Floating, Close)? (I don't want to re invent the wheel here). I'll take a look at the link you provided and see if I need guidance there.
Yes you are correct. It is not necessary to reinvent the wheel. However you can get the code by downloading the source code of our controls. You can find the source code by login into our website and navigate to this address https://es.infragistics.com/my-account/keys-and-downloads.
Click on the product you need the source code for and then on Source Code tab in the bottom table. The inbuild context menu initialization is starting in UltraDockManager class in InitializeContextMenu method. You can follow the entire logic of the context menu starting from this point.