Last active
May 4, 2017 12:12
-
-
Save strepicor/5e21c228eebd5ee84d4f76ff165c511a to your computer and use it in GitHub Desktop.
Epicor Customization - Rename Form Treeview Container and Treeview Root Node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add this code to InitializeCustomCode() event | |
//Change Treeview Root Note text | |
EpiTreeViewPanel tvp = (EpiTreeViewPanel)(oTrans.EpiBaseForm.GetType().InvokeMember("epiTreeViewPanel1", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.GetField | System.Reflection.BindingFlags.NonPublic, null, oTrans.EpiBaseForm, null)); | |
tvp.RootNodeText = "Your Root Node Text"; | |
//Change Treeview Panel Title | |
Infragistics.Win.UltraWinDock.DockableWindow dockWindow = (Infragistics.Win.UltraWinDock.DockableWindow) tvp.Parent; | |
Infragistics.Win.UltraWinDock.DockableControlPane dockPane = (Infragistics.Win.UltraWinDock.DockableControlPane) dockWindow.Pane; | |
dockPane.Text = "Your Treeview Panel Title Text"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can anyone share code on actually changing the 'tree' display in the tree vie? ie: in a UD table maintenance customization I would like to concatenate the 'available' values in the tree view, such as 'Key1' + "-" + "Key2"