Page 1 of 1

Hiding Action Bar

Posted: Fri Jul 10, 2020 1:21 am
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;

Re: Hiding Action Bar

Posted: Tue Jul 14, 2020 11:06 am
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.

Re: Hiding Action Bar

Posted: Thu Jul 16, 2020 3:24 am
by brett.macpherson
thanks this sorted it for us.

Re: Hiding Action Bar

Posted: Thu Jul 16, 2020 7:28 am
by Lech Kulikowski
Hello

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

Thank you.