button on section page in particular column

hi Team

I am attempting to place a button  for every record in a section page

 for example 


 like test button whenever a record got added in the section at the front end of the page I need a test button for every record.

 I know how to do this by Active Row, But when a row is not active also I need a test button in one column in the front end.for that which process i have to follow.









Like 0



Hi Manikanta,

You can add a button using JQuery. Please see sample below. i added such button into Contact Section into last column in the grid. Idea is to add a column in a column setup and then using JQuey build a selector to that column. In my example i used last column in the grid for simplicity. Contact section:

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;





Dmytro Smishchenko,

I added the custom class but all rows has same class.

I need to set separate class for each row


Any help will be highly appreciable.

Hi Dmytro Smishchenko,

I can add button to all the records using jquery as suggested.

Step 1 :

Adding buttons to all the rows/records


Step 2 :

Opening and closing a record. (Ex, consider im opening and closing the first record)


Step 3 :

After closing the record, i could not see the button added in the section list.



i can see that this jquery's button  build is happening on onGridDataLoaded() and render() functions. But when we open a record and closed the record this methods are not triggered and hence the button is not shown.

Can you please give some insight to overcome this!

Thanks in advance!


Bhoobalan P.



Show all comments