Add a custom button in all rows

I need this button to be on all rows and not on "activeRowActions", and I can't find the right parent.


	"operation": "insert",
	"parentName": "DataGrid",
	"propertyName": "activeRowActions",
	"name": "MoveQtyButton",
	"values": {
		"itemType": Terrasoft.ViewItemType.BUTTON,
		"caption": "Move Qty",
		 "className": "Terrasoft.Button",
         "tag": "call",


Like 1



Hi Gabriel,

Please find the solutions in the below community threads.

Bhoobalan Palanivelu.

Bhoobalan Palanivelu,

Thanks for responding, but I had seen these posts before, and they helped me in parts but not for what I need, the two are for activeRow, that is for when they are selected only, and I need them to appear in all rows even if not selected.

Gabriel Cassimiro,

Thanks for the briefing!
In this case, you need a button as a column in the grid.

ContactSectionV2 Grid

define("ContactSectionV2", ["css!UsrContactSectionV2CSS"], function() {
	return {
		entitySchemaName: "Contact",
		attributes: {
			"SelectButtonColumn": {
				"dataValueType": Terrasoft.DataValueType.TEXT,
				"type": Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/,
		methods: {
			onGridDataLoaded: function(response) {, response);
			onRender: function() {
			unSelectRow: function(id) {
				this.mixins.ConfigurationGridUtilities.unSelectRow.apply(this, arguments);
			addSelectCustomerButton: function() {
				var baseSelector = "#grid-ContactSectionV2DataGridGrid-wrap div.grid-listed-row div:last-child";
				var selector = baseSelector + ">span";
				var scope = this;
					Ext.String.format("<span>{0}</span>", this.get("Resources.Strings.SelectCustomerButtonCaption")));
				$(selector).click(function() {
					var id = "";
					try {
						id = arguments[0]"item-")[1];
					} catch(e) {}
					if (id) {
					} else {
						this.error("Active row id was not found");
			onSelectCustomerButtonClick: function(id) {

CSS Module:

.glb-select-customer-button {
	background: #8ecb60;
	color: white;
	padding: 2px 10px;
	border-radius: 3px;
.glb-select-customer-button:hover {
	background: #74bc48;
	cursor: pointer;

Result will be like below,

You need to do the same in your detail schema.

Bhoobalan Palanivelu.


Bhoobalan Palanivelu,

This is fantastic Bhoobalan, thanks for sharing!


Bhoobalan Palanivelu,

Thanks, I have a question, because I'm trying to apply in a list of a detail, but I'm not having the same result for when it is a grid of a section, is there something I have to put different or does it work the same way?

Gabriel Cassimiro,

Please be informed to define the value for this label through the localizable string available on your schema page.


Also, you can check about the CSS and its dependency included in your schema.


Bhoobalan Palanivelu.

Show all comments