Question

Make action in row visible detail

Hi Team!

 

There is a way to make visible a buton based on condition in the detail row?

diff: /**SCHEMA_DIFF*/[
					{
						"operation": "remove",
						"name": "AddRecordButton"
					},
					{
						"operation": "merge",
						"name": "DataGrid",
						"values": {
							"activeRowAction": {bindTo: "onActiveRowAction"},
							"activeRowActions": [
								{
									"className": "Terrasoft.Button",
									"style": this.Terrasoft.controls.ButtonEnums.style.GREEN,
									"caption": {"bindTo": "SelectButtonCaption"}
								}
							]
						}
					}
				]/**SCHEMA_DIFF*/

 

Like 0

Like

1 comments

I found this solution in the onRender function Im calling a function to remove the actions in this way 

const grid = this.getCurrentGrid();
const activeRowActions = this.activeRowActions;
//Remove here the items from the array if you dont want to show them

 

Show all comments