Forum Discussion

CDavidOrr's avatar
CDavidOrr
Cloud Apps
01-18-2022
Solved

BloX not showing all items

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

  • Hello CDavidOrr ,

    There are 2 solutions to enable scrollbar:

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

      

    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

2 Replies

Replies have been turned off for this discussion
  • harikm007's avatar
    harikm007
    Data Warehouse

    Hello CDavidOrr ,

    There are 2 solutions to enable scrollbar:

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

      

    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

    • CDavidOrr's avatar
      CDavidOrr
      Cloud Apps

      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.