Scrollbar should come after iggrid reaches a specific height..how do we achieve it?
Mike,Thanks for the reply.
I will try it.
Hello Akhi,
Thank you for the update. What you would have to do is check the number of records in your data and set the height of the grid based on that. You can do this in the rendered event of the igGrid:
rendered: function(evt, ui) {var rowCount = ui.owner.dataSource.data().length$("#grid1").igGrid("option", "height", "200px");}
http://www.igniteui.com/help/api/2016.2/ui.iggrid#options:height
http://www.igniteui.com/help/api/2016.2/ui.iggrid#events:rendered
Mike,the content of table is dynamic..sometimes there are 2 rows and other times there are 100 rows.
If there are 100 rows a table containing only 10 rows with scroll bar should be shown .
Also if it contains only 2 rows we do not want to show a table containing lot of empty spaces.
Is there a work around?
Thank you for contacting Infragistics!
If you want the igGrid to activate vertical scroll bars you have to set the height of the igGrid. Otherwise the igGrid will set its own height to the total height of the rows being rendered in the grid.