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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Autoscroll is not working in tree grid.

AP_10343008
15-Moonstone

Autoscroll is not working in tree grid.

I am passing the below code in configuration json of grid. And I pass the selected row data in the tree grid for every mashup load. But autoscrolling is not happening. 

 

"rows": { // Optional
"selection": "single", // *{string} row selection setting. Options: 'none, 'single', 'multi'
"defaultSelectedRows": "1", // *{string} default row selection setting starting with row 1. Options: '1', '1,2,3', '1-5,10'
"minHeight": "56", // {string} row height setting in px.
// "maxHeight": "100",
"autoScroll": true//, // {boolean} scroll to the selected rows on update or resize
//"singleLine": true
},

6 REPLIES 6

@AP_10343008 

what's your Thingworx version?

can you share demo mashup here?

AP_10343008
15-Moonstone
(To:wcui)

Thingworx version is 9.1

I have attached the duplicate mashup of the original mashup in which tree grid is used. 

@AP_10343008 

when the Configuration property is configured to Grid widget, many other properties must also be set inside the Configuration property, such as ParentIDFieldName, IDFieldName, HasChildrenFieldName.

Please export your mashup entity as xml file so we can verify it locally.

AP_10343008
15-Moonstone
(To:wcui)

 

Hi @AP_10343008 

It seems you are using Tree Grid Advanced(id : treegridadvanced-358) , not standard Grid widget.

As you did not share the data source thing, I can not check the Json content of Configuration property.

 

You can download the Advanced Grids Samples File from below link, open the XML file and search keyword "autoScroll".

Compare those sample Json value with yours, hopefully you can find the reason. 

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

 

AP_10343008
15-Moonstone
(To:wcui)

I attached you the txt file of js code (Configuration JSON code which passed to treegrid widget). Kindly have a look and let me know 

Announcements


Top Tags