I have specified the maximum number of rows to be displayed in the grid and when the user adds beyond the number of rows specified the scrollbar appears and the grid doesn’t grow in height. This is fine. But if the user adds just one or two rows then the grid doesnot auto size to fit in just the two rows. Instead it’s height is set to display the maximum number of rows specified by the user leaving a lot of whitespace within the grid. Can you please help me resolve this?
Hi,
Can you provide a snippet of the issue?
Hi,
Sorry for the late reply.
Below is a snippet
http://webix.com/snippet/256c5048
The yCount is set to 8 and the number of rowsin the table is 6. The table doesnt resize to fit in just the 6 rows and shows the extra white space. Is there a way where we can resize the table to fit in the rows if the row count is less than the yCount?
You can changeyCount
depending on the number of rows:
Ok thankyou so much for that. But if i delete all the rows in the table then the row count would be 0 and i would want the yCount to be set to 0 as well. The ycount is being set to 0 but then the height of the table doesn’t adjust itself. The height simply remains the same.
http://webix.com/snippet/d12bb067
In the snippet below, i have just changed my yCount to 0. But the table height still remains the same. Could you please help?
Found the answer. If we set the yCount to -1 then it does the job.