1. Overview

This document talks about how to remove the options from the interactive grid action menus.

2. Technologies and Tools Used

The following technologies have been used to achieve exporting IR data to Word format.

  • JavaScript

3. Use Case

As we all know, an interactive grid offers more options like add row, refresh, delete, duplicate, etc, in both the row action and the action menu located right to the search bar of the interactive grid. But in some cases, we have to restrict/disable some of the features to the end-users. So this blog provides you with an idea of restricting options in the interactive grid action menu.

4. Architecture

Step 1:  Create an editable interactive grid in the page.

Step 2: Go to the interactive grid attribute and navigate to JavaScript Initialization Code section and place the below code,

function(config) {

config.initActions = function(actions) {

actions.remove(“single-row-view”); // remove option from row action

actions.remove(“row-duplicate”); // remove option from row action

actions.remove(“row-delete”); // remove option from row action

actions.remove(“row-add-row”); // remove option from row action

actions.remove(“row-refresh”); // remove option from row action

actions.remove(“row-revert”); // remove option from row action

actions.remove(“selection-delete”); // remove option from action menu

actions.remove(“selection-duplicate”); // remove option from action menu

actions.remove(“selection-revert”); // remove option from action menu

actions.remove(“selection-refresh”); // remove option from action menu

actions.remove(“selection-add-row”); // remove option from action menu

actions.remove(“selection-fill”); // remove option from action menu

actions.remove(“selection-clear”); // remove option from action menu

actions.remove(“selection-copy-down”); // remove option from action menu

actions.remove(“selection-copy”); // remove option from action menu

};

return config;

}

Step 3: Finally save and run the page.

Recent Posts

Start typing and press Enter to search