Hiding Action Bar

Stimulsoft Dashboards.WEB discussion
Post Reply
brett.macpherson
Posts: 42
Joined: Mon Apr 13, 2020 7:29 am

Hiding Action Bar

Post by brett.macpherson »

Hi,
we've integrated Stimulsoft dashboards.web into our web application which seems to have gone well. In our instance we take control of supplying the data sources from our SQL server through our application so have hidden many of the native controls for adding data sources, which we have done with the settings below. However we cannot seem to hide the action bar in the dictionary (just below the dictionary title). Is this possible to be hidden?



//
StiWebDesigner1.ShowSaveDialog = false;
StiWebDesigner1.ShowFileMenuSaveAs = false;
StiWebDesigner1.ShowFileMenu = false;
StiWebDesigner1.ShowNewPageButton = false;
StiWebDesigner1.ShowNewDashboardButton = false;
//
StiWebDesigner1.PermissionBusinessObjects = StiDesignerPermissions.None;
StiWebDesigner1.PermissionDataColumns = StiDesignerPermissions.View;
StiWebDesigner1.PermissionDataConnections = StiDesignerPermissions.View;
StiWebDesigner1.PermissionDataRelations = StiDesignerPermissions.None;
StiWebDesigner1.PermissionDataSources = StiDesignerPermissions.View;
StiWebDesigner1.PermissionResources = StiDesignerPermissions.None;
StiWebDesigner1.PermissionSqlParameters = StiDesignerPermissions.View;
StiWebDesigner1.PermissionVariables = StiDesignerPermissions.View;
Attachments
Stimulsoftdesigner.png
Stimulsoftdesigner.png (188.62 KiB) Viewed 1637 times
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: Hiding Action Bar

Post by Lech Kulikowski »

Hello,

please check the following code:

Code: Select all

var designer = new Stimulsoft.Designer.StiDesigner(designerOptions, "StiDesigner", false);
            designer.renderHtml("content");

            var dictionaryPanel = designer.jsObject.options.dictionaryPanel;
            dictionaryPanel.toolBar.controls["Actions"].style.display = "none";
            dictionaryPanel.toolBar.controls["NewItem"].style.display = "none";

            //if you want to hide context menu for dictionary panel
            dictionaryPanel.onmouseup = function (event) {
                return false;
            }
Thank you.
brett.macpherson
Posts: 42
Joined: Mon Apr 13, 2020 7:29 am

Re: Hiding Action Bar

Post by brett.macpherson »

thanks this sorted it for us.
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: Hiding Action Bar

Post by Lech Kulikowski »

Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
Post Reply