This example shows how to handle the client-side CustomizeMenuActions event to hide the existing Highlight Editing Fields toolbar command and add a new Run Slide Show command that navigates through pages.
To get a command, call the event argument's GetById method and pass the command ID as a parameter. To hide a command and its toolbar button, set the command's visible
property to false
.
To add a new toolbar command, follow the steps below:
- create an image template (in this example, id = "slideshow")
- specify all command settings including the
imageTemplateName: "slideshow";
- call the push method to add a command to the event argument's Actions collection.
- Customize the Document Viewer Toolbar (ASP.NET WebForms)
- Customize the Document Viewer Toolbar (ASP.NET MVC)
- Customize the Document Viewer Toolbar (ASP.NET Core)
(you will be redirected to DevExpress.com to submit your response)