Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
row insert problem with Javascript
posted

I wanna create a function to add rows like this.

Col1 Col2 Col3
Col2 Col3
Col2 Col3
Col2 Col3

function InsertMultiRow(gridName)
{
  var row1 = igtbl_addNew(gridName, 0, true, false);
  var row2 = igtbl_addNew(gridName, 0, true, false);
  var row3 = igtbl_addNew(gridName, 0, true, false);
  var row4 = igtbl_addNew(gridName, 0, true, false);

  row1.getCellFromKey("COL1").Element.rowSpan = 4;

}

but The result is like below.

How can I solve this problem?

Col1 Col2 Col3
Col1 Col2
Col1 Col2
Col1 Col2

 

Parents
No Data
Reply Children
No Data