optikalefx / OpenJS-Grid

OpenJS Grid is the easiest jQuery Grid ever. With very little work you can have a data grid that can do everything from sorting and searching to complex database queries. Best of all, its open source. So you can learn how it's all done.
http://square-bracket.com/openjs
MIT License
96 stars 46 forks source link

Blank Row Allow #94

Closed nrbsoft closed 8 years ago

nrbsoft commented 8 years ago

Its not a issue particularly but request to show header column atleast with "No Rows" if no data present in table.Because plain "No Rows" looks little ugly

Thanks in advance

nrbsoft commented 8 years ago

i solved it by adding flowing after if (!Array.isArray(data.rows)) {} in grid.js //

if ((data.rows.length == 0) && (data.errors==null)) { if (current == middlerow) { colHtml += "

No Rows
"; } else { colHtml += "
"; } current++; colHtml += "
"; }