I wanna create a function to add rows like this.
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?
Hello Chloe,
Thank you for posting in the community.
Please note that setting the rowspan for an UltraWebGrid cell on the client would cause the following rows to be "pushed" sideways creating the effect illustrated in the images above. In order to avoid this, I would suggest setting the rowSpan on the server as described in the following documentation article:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.1/CLR4.0/html/WebGrid_Merging_Cells_Manually.html
Note that UltraWebGrid has been retired and as of version 11.2 of NetAdvantage is no longer included in the product toolset. For a full list of the retired controls and their respective AIKIDO replacements, please visit:
http://ko.infragistics.com/community/blogs/taz_abdeali/archive/2011/11/17/asp-net-product-changes-in-2011-volume-2.aspx
As an alternative replacement for our classic controls, you may also be interested in our HTML5 jQuery toolset:
http://ko.infragistics.com/products/jquery/
Please do not hesitate to contact me if you have any questions.