handsontable empty lines . how to avoid

1,488 views
Skip to first unread message

Tharindu Dissanayake

unread,
Jul 24, 2013, 11:06:57 PM7/24/13
to handso...@googlegroups.com

. Iam new to handsontable. please help me to solve this issue. i have mysql table called today_plan. i have a column plandate so i need to get records which are in today. ex 7/24/2013

table : today_plan

i tried in hanstable my output is like this. it produced empty row for plandate=7/23/2013 how can i remove this empty line in the handsontable

enter image description here

result should be like following.

enter image description here

please give solution, thank u very much

codename-

unread,
Jul 26, 2013, 7:26:50 PM7/26/13
to handso...@googlegroups.com
How your data looks like? Maybe try to filter (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) data before loading it to Handsontable?
I suppose that you have empty rows in your data, so this problem is related to your query from db, not directly with Handsontable.

dharm...@technorex.in

unread,
Oct 8, 2015, 9:14:18 AM10/8/15
to Handsontable
On Thursday, 25 July 2013 08:36:57 UTC+5:30, Tharindu Dissanayake wrote:
> . Iam new to handsontable. please help me to solve this issue. i have mysql table called today_plan. i have a column plandate so i need to get records which are in today. ex 7/24/2013
>
>
>
>
>
> i tried in hanstable my output is like this. it produced empty row for plandate=7/23/2013 how can i remove this empty line in the handsontable
>
>
>
>
>
> result should be like following.
>
>
>
>
>
> please give solution, thank u very much

I did something like this:

var gridData = hot1.getData();
var cleanedGridData = {};

$.each( gridData, function( rowKey, object) {
if (!hot1.isEmptyRow(rowKey)) cleanedGridData[rowKey] = object;
});

Web & Mobile App Development Company, India
Technorex Solutions
http://technorexsolutions.com/

Reply all
Reply to author
Forward
0 new messages