How to disable button duplicate and properties on connection dictionary?
-
- Posts: 24
- Joined: Fri Sep 20, 2013 4:18 am
-
- Posts: 24
- Joined: Fri Sep 20, 2013 4:18 am
-
- Posts: 6826
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to disable button duplicate and properties on connection dictionary?
Hello,
Please try to check the following code:
Thank you.
Please try to check the following code:
Code: Select all
var designer = new Stimulsoft.Designer.StiDesigner(designerOptions, "StiDesigner", false);
designer.renderHtml("content");
designer.jsObject.InitializeSelectConnectionForm(function (form) {
designer.jsObject.oldInitializeSelectConnectionForm_ = designer.jsObject.InitializeSelectConnectionForm_;
designer.jsObject.InitializeSelectConnectionForm_ = function () {
var form = designer.jsObject.oldInitializeSelectConnectionForm_();
form.oldFillConnections = form.fillConnections;
form.fillConnections = function (connections) {
form.oldFillConnections(connections);
form.connectionGroups.Recent.style.display = "none";
form.container.firstChild.rows[0].firstChild.childNodes[1].getItemByName("Recent").style.display = "none";
}
return form;
}
});
-
- Posts: 24
- Joined: Fri Sep 20, 2013 4:18 am
-
- Posts: 6826
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to disable button duplicate and properties on connection dictionary?
Hello,
Please check the following code:
var designer = new Stimulsoft.Designer.StiDesigner(designerOptions, "StiDesigner", false);
designer.renderHtml("content");
var dictionaryContextMenu = designer.jsObject.options.menus.dictionaryContextMenu || designer.jsObject.InitializeDictionaryContextMenu();
dictionaryContextMenu.items.properties.parentElement.removeChild(dictionaryContextMenu.items.properties);
dictionaryContextMenu.items.duplicateItem.parentElement.removeChild(dictionaryContextMenu.items.duplicateItem);
Thank you.
Please check the following code:
var designer = new Stimulsoft.Designer.StiDesigner(designerOptions, "StiDesigner", false);
designer.renderHtml("content");
var dictionaryContextMenu = designer.jsObject.options.menus.dictionaryContextMenu || designer.jsObject.InitializeDictionaryContextMenu();
dictionaryContextMenu.items.properties.parentElement.removeChild(dictionaryContextMenu.items.properties);
dictionaryContextMenu.items.duplicateItem.parentElement.removeChild(dictionaryContextMenu.items.duplicateItem);
Thank you.
-
- Posts: 24
- Joined: Fri Sep 20, 2013 4:18 am
Re: How to disable button duplicate and properties on connection dictionary?
Hi, I have done all of this and its work. Thank you very much
-
- Posts: 6826
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to disable button duplicate and properties on connection dictionary?
Hello,
You are welcome.
You are welcome.