cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

I want to control the grid property from none selection to multiple selection in Thingworx Developers

AC_10460579
7-Bedrock

I want to control the grid property from none selection to multiple selection in Thingworx Developers

In Thingworx 9.5 there is one feature of "RowSelection" that  is bindable.
I want to control the grid property from none selection to multiple selection through this AC_10460579_0-1704431142862.png


Upon clicking the button, I pass the result as 'Multiple' to the RowSelection grid property and reset the grid on change. The issue is that I am unable to switch to multiselect.

AC_10460579_2-1704431361033.png

 

ACCEPTED SOLUTION

Accepted Solutions

Hi @AC_10460579 ,

 

I'm not sure why the RowSelection ("none" or "single" or "multi" ) widget property is not working as expected in runtime changes, It is not working in my TWX 9.4.2 environment too.

 

In this case you can use Grid's - Configuration property to make runtime grid view changes. I'm here attaching the sample for Row Selection based on service output. You modify it based on your requirement. I hope it helps you.

 

if (IP_Data === true) {
	result = {
		"rows": {
			"selection": "single" //  "none" or "single" or "multi" 
		}
	};
} else {
	result = {
		"rows": {
			"selection": "multi" //  "none" or "single" or "multi" 
		}
	};
}

 

Expected Bindings:

Arun_C_0-1704469174111.png

 

Incase any queries kindly let me know.

 

Thanks & Regards,

Arun C

View solution in original post

1 REPLY 1

Hi @AC_10460579 ,

 

I'm not sure why the RowSelection ("none" or "single" or "multi" ) widget property is not working as expected in runtime changes, It is not working in my TWX 9.4.2 environment too.

 

In this case you can use Grid's - Configuration property to make runtime grid view changes. I'm here attaching the sample for Row Selection based on service output. You modify it based on your requirement. I hope it helps you.

 

if (IP_Data === true) {
	result = {
		"rows": {
			"selection": "single" //  "none" or "single" or "multi" 
		}
	};
} else {
	result = {
		"rows": {
			"selection": "multi" //  "none" or "single" or "multi" 
		}
	};
}

 

Expected Bindings:

Arun_C_0-1704469174111.png

 

Incase any queries kindly let me know.

 

Thanks & Regards,

Arun C

Announcements


Top Tags