Skip to main content
7-Bedrock
January 5, 2024
Solved

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

  • January 5, 2024
  • 1 reply
  • 795 views

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

 

Best answer by Arun_C

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

1 reply

Arun_C16-PearlAnswer
16-Pearl
January 5, 2024

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