We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How change BarItem text in customization dialog?

I have following menu structure: Draw |-> Rectangle |-> By &three point So last menu item is displayed in customize as “By &three point”, but it have to displayed as “Rectangle by three point”. How I can specify different text and display text for each BarItem?

8 Replies

IO Ivan Obraztsov June 22, 2005 06:40 AM UTC

Moving up.


AD Administrator Syncfusion Team June 22, 2005 10:34 PM UTC

Hi Ivan, Are you using the beta of VS .NET 2005? There has been a similar issue already reported in such a situation. Regards, Gregory Austin Syncfusion Inc.


IO Ivan Obraztsov June 24, 2005 02:19 PM UTC

> Are you using the beta of VS .NET 2005? There has been a similar issue already reported in such a situation. No, I use VS 2003.


IO Ivan Obraztsov June 28, 2005 10:13 AM UTC

Customize dialog I want to define more exactly my question. The BarItem have property "Text". This text is displayed in menu and in customize dialog. But there are situations than text in menu and in customize dialog have to be different. For example: Menu structure is: Draw __|-> Rectangle _____|-> By three points __|-> Circle _____|-> By three points So there are two different BarItems this same text. It''s normal for menu because they are in different submenus. But in customize dialog all items in category "Draw" are in the one list, so they must have different names. For example, "Rectangle by three points" and " Circle by three points".


AD Administrator Syncfusion Team June 28, 2005 08:15 PM UTC

Hi Ivan, We provide a way to customize the customization dialog. This should allow you to display whatever you want when the user invokes customization. Please refer to the online documentation for MainFrameBarManager.CustomizationPanel. If you have any questions about it, please let me know. Regards, Gregory Austin Syncfusion Inc.


AD Administrator Syncfusion Team September 27, 2005 01:52 PM UTC

> We provide a way to customize the customization dialog. This should allow you to display whatever you want when the user invokes customization. > > Please refer to the online documentation for MainFrameBarManager.CustomizationPanel. If you have any questions about it, please let me know. I inherit my own control from CustomizationPanel to change BarItem''s texts in commands grid. But my changes don''t apply. Grid always show standard BarItem text. This is my implementation: using System; using System.Diagnostics; using System.Windows.Forms; using Syncfusion.Windows.Forms.Grid; using Syncfusion.Windows.Forms.Tools.XPMenus; namespace zLocalizeTest { /// /// Summary description for CustPanel. /// public class CustPanel : CustomizationPanel { public CustPanel() { gridHostPanel.ControlAdded += new ControlEventHandler(gridHostPanel_ControlAdded); } private void gridHostPanel_ControlAdded(object sender, ControlEventArgs e) { MenuGridControlCustomizable ctrl = gridHostPanel.Controls[0] as MenuGridControlCustomizable; ctrl.UpdatingChanged += new EventHandler(ctrl_UpdatingChanged); } private void ctrl_UpdatingChanged(object sender, EventArgs e) { MenuGridControlCustomizable grid = sender as MenuGridControlCustomizable; if(grid == null) return; try { grid.UpdatingChanged -= new EventHandler(ctrl_UpdatingChanged); GridModel model = grid.Model; for(int row=1; row<=model.RowCount; row++) { GridStyleInfo info = model[row, 2]; if(info.CellValueType != typeof(string)) continue; info.CellValue = (string)info.CellValue + "aaa"; Debug.WriteLine(info.CellValue); } } catch(Exception ex) { Debug.WriteLine(ex); } finally { grid.UpdatingChanged += new EventHandler(ctrl_UpdatingChanged); } } } }


IO Ivan Obraztsov September 27, 2005 01:54 PM UTC

Sorry, I forgot enter my name.


AD Administrator Syncfusion Team September 28, 2005 12:05 PM UTC

Hi Ivan, This was a known issue Defect #418 - Changes performed through derived Customize dialog are not persisted that has been fixed in version 3.3. Please create a Direct-Trac incident if you are interested in receiving this version. We appreciate your cooperation. Regards, Ebenezer.P

Loader.
Live Chat Icon For mobile
Up arrow icon