Skip to content

Instantly share code, notes, and snippets.

@strepicor
Last active May 4, 2017 12:12
Show Gist options
  • Save strepicor/5e21c228eebd5ee84d4f76ff165c511a to your computer and use it in GitHub Desktop.
Save strepicor/5e21c228eebd5ee84d4f76ff165c511a to your computer and use it in GitHub Desktop.
Epicor Customization - Rename Form Treeview Container and Treeview Root Node
//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";
@fuji36
Copy link

fuji36 commented May 4, 2017

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment