Skip to main content
16-Pearl
April 25, 2023
Solved

fixing wrapping texts in treegrid through configuration json

  • April 25, 2023
  • 1 reply
  • 694 views

I am passing configuration json to treegrid. For the html basetype columns, "overflow": "fitted" field is not working. so texts inside every cell of grid is not wrapping. How to fix this. 

How to add wrapping in html basetype columns or css of grid?

 

Best answer by wcui

Please download the XML file of " Grid Advanced Example Entities" from below link and import to your Thingworx instance.

https://support.ptc.com/help/thingworx/platform/r9/en/#page/ThingWorx/Help/Mashup_Builder/Widgets/AdvancedGridsSamplesFile.html

 

Then find thing <GridAdvancedExampleServices>, check code of service <GetEmployeeRoleBasedConfiguration> and you can see below content.

Please modify your Json settings accordingly.

wcui_0-1682563418997.png

 

 

For more details, refer to below section.

https://support.ptc.com/help/thingworx/platform/r9/en/#page/ThingWorx/Help/Mashup_Builder/Widgets/AdvancedGrids.html#https://support.ptc.com/help/thingworx/platform/r9/en/#page/ThingWorx/Help/Mashup_Builder/Widgets/Grid_ConfiguringtheGridUsingJSONData.html

 

1 reply

wcui16-PearlAnswer
16-Pearl
April 27, 2023

Please download the XML file of " Grid Advanced Example Entities" from below link and import to your Thingworx instance.

https://support.ptc.com/help/thingworx/platform/r9/en/#page/ThingWorx/Help/Mashup_Builder/Widgets/AdvancedGridsSamplesFile.html

 

Then find thing <GridAdvancedExampleServices>, check code of service <GetEmployeeRoleBasedConfiguration> and you can see below content.

Please modify your Json settings accordingly.

wcui_0-1682563418997.png

 

 

For more details, refer to below section.

https://support.ptc.com/help/thingworx/platform/r9/en/#page/ThingWorx/Help/Mashup_Builder/Widgets/AdvancedGrids.html#https://support.ptc.com/help/thingworx/platform/r9/en/#page/ThingWorx/Help/Mashup_Builder/Widgets/Grid_ConfiguringtheGridUsingJSONData.html