Search code examples
javascriptasp.net-mvcgetorgchart

GetOrgChart removing top bar, accesing click handlers


I'm trying to implement GetOrgChart with asp.net mvc in a complex scheme but stuck with some issues...

  • I need to remove top search bar. Tried to do this adding "display-none" to generated div's css class. But this resulted in main svg not filling screen, 'cause it's padding gets set to some value from inline styling.
  • Is there any way to access add/edit/delete/view buttons' click handlers? I want to display a custom page for each operation. And can we disable individual buttons (i.e. add or edit) selectively?

Solution

  • In order to remove the top bar you have to change the theme, lets assume that you are using "ula" theme, remove the top bar set getOrgChart.themes.ula.toolbarHeight = 0;

    Regarding your second question use the following example as starting point:

    http://www.getorgchart.com/Demos/Custom-Edit-Form