0

I am trying to add mutliple rows to footable using following by using footable.AppendRow( ) method, but it is adding only first one, and terminating loop

      $('.add-row').click(function (e) {
             e.preventDefault();

             //get the footable object
             var footable = $('#tb').data('footable');
             var rows = JSON.parse('<%=GetCustomersPageWise() %>');//returns 20 rows

             for (var i = 0; i < rows.length; i++)
             {
                 alert(i)
                 alert(rows[i])
                 footable.appendRow(rows[i])// after this statement it is terminating
                 alert(news)

             }

Is it possible to add multiple rows to footable, is there any restriction that footable.appendRow( ) only adds one row at a time. Everything is fine only I need to bind multiple rows to footable at time.

Krish R
  • 22,583
  • 7
  • 50
  • 59
Sekhar Babu
  • 368
  • 2
  • 8
  • 27

0 Answers0