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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Hide GRID component when there is no data.

ymuley
1-Visitor

Hide GRID component when there is no data.

Hi ,

I am working on Grid component. I have following 2 requirements.

1) If there is no data to display in the Grid, how is it possible to hide it?

2)Is it possible to avoid render all the records in the Grid without vertical scroll bar? The Grid should expand as per the data size.

3 REPLIES 3

1) You just need to bind to the "Visible" property of the grid, build a service which returns if there's data or not, and bind the result of this service to Visible Property.

2) Already the vertical scroll bar only appears when the rows doesn't fit on the screen.

Hi Carles,

Thanks for your answers.

Please consider the following example.

Consider we have vertical layout with 2 rows in it.

The upper row has a Grid component in it which displays records. If the number of records are more,the grid component should resize itself to display all the records at once and avoid displaying vertical scrollbar. Can it be possible with Grid component?

Thanks,

Yogesh

Hi Yogesh,

TW mashups doesn't have this kind of feature ( Growing panels ), you can't get this "effect"/"feature" with it.

Carles.

Announcements


Top Tags