cancel
Showing results for 
Search instead for 
Did you mean: 

BloX not showing all items

CDavidOrr
9 - Travel Pro
9 - Travel Pro

I have a BloX widget that builds a small table of item/value pairs.  I want to show the entire table so I have showCarousel set to false.  The table builds fine but only the first 10 items are shown in the widget.  (There are 16 total.)

This page: https://documentation.sisense.com/l2021-11-x/docs/creating-interactive-dashboards has a note that says that due to performance issues, list items are limited to a total of 100.  At 16, I am well below that number.

I figure that either BloX is limiting it to 10 items or there is a missing scroll bar on the widget.  I would appreciate any ideas anyone would have as to what may be amiss here.

BTW, if I turn on the carousel, it will cycle through all 16 values.

TIA,

David

1 ACCEPTED SOLUTION

harikm007
13 - Data Warehouse
13 - Data Warehouse

Hello @CDavidOrr ,

There are 2 solutions to enable scrollbar:

1. Remove titleStyle if it is specified in blox script.

title style.jpg  

2. Add this dashboard script and update the widgetid variable:

dashboard.on('widgetready', function(se, ev){
	widgetid = '61cfdf1a5684784530c44865'
	
	widgetelement = $('[widgetid="' + widgetid + '"]')
	widgetHeight = widgetelement.height()
	widgetelement.find('blox .content').height(widgetHeight-20)
})

-Hari

View solution in original post

2 REPLIES 2

harikm007
13 - Data Warehouse
13 - Data Warehouse

Hello @CDavidOrr ,

There are 2 solutions to enable scrollbar:

1. Remove titleStyle if it is specified in blox script.

title style.jpg  

2. Add this dashboard script and update the widgetid variable:

dashboard.on('widgetready', function(se, ev){
	widgetid = '61cfdf1a5684784530c44865'
	
	widgetelement = $('[widgetid="' + widgetid + '"]')
	widgetHeight = widgetelement.height()
	widgetelement.find('blox .content').height(widgetHeight-20)
})

-Hari

@harikm007 

Thank you very much for your reply.  You were right on with the TitleStyle.  I do have display set to none.  Since I need to maintain that I added your script.  I did get some strange behavior with it in that the widget was reduced down to less than one line of text showing.  If I then manually adjusted the height of the widget, it then displayed correctly with the scroll working.  So I played around a little and found that if I subtracted just 1 from the widget height in the script, it works as desired.