Adding Empty Rows in Slick Grid

1,113 views
Skip to first unread message

Siddharth Bhaskar

unread,
Nov 4, 2013, 8:38:27 PM11/4/13
to slic...@googlegroups.com
Hi All,

I have a requirement where after data is loaded in grid, if there is space some empty space in grid it should be filled with empty rows.
The empty space is inside the grid panel which could be filled with more data.

It should be able to handle change in grid height.

I am new to SlickGrid and need help.
Please let me know if anyone has any suggestions.
Thanks for your help in advance.

Siddharth

Michael Leibman

unread,
Nov 18, 2013, 2:45:50 AM11/18/13
to slickgrid
Sorry, SlickGrid doesn't do that.


--
You received this message because you are subscribed to the Google Groups "SlickGrid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to slickgrid+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Eric Miller

unread,
Apr 28, 2014, 3:06:47 PM4/28/14
to slic...@googlegroups.com
It sounds like all you need is the appearance of rows. You don't want to count the remaining space and add enough rows to fill it, then hide the overflow. That would suck and be difficult to maintain. Instead, you can accomplish this in two steps that avoid messing with the data model.
  1. Emulate rows. Because rows are fixed height, just add a couple of background-gradients that look like your row and divider. you can handle alternating row colors, all of it, no problem. http://lea.verou.me/css3patterns/
  2. Emulate column dividers. Because slickgrid puts the left and right boundary definitions in an inline stylesheet at the top of the document, you can add full height "cells" behind the grid that live only to draw the column boudnaries. Assign them the `l0 r0` column boundary classes and they're exactly match the boundaries of the real cells.
Reply all
Reply to author
Forward
0 new messages