HTMLDataSet using a table with colspan and rowspan

This page demonstrates how HTMLDataSet handles a table that uses colspan and rowspan. The value for the missing cells are taken from the originating cell that contains the colspan or rowspan attribute.


Here's the constructor code for the DataSet used in the sample.

	var ds1 = new Spry.Data.HTMLDataSet(null, "sampleTable", {hideDataSourceElement:false});

Table using spry references. Notice the repeat of cell values for the colspan and rowspan (B1, D1 and C2):

A B C D E
{A} {B} {C} {D} {E}

Original source table. This is not hidden by the HTMLDataSet because optional parameter {hideDataSourceElement:false} is passed to the constructor.

A B C D E
A1 B1 C1 D1
A2 C2 E2
A3 B3 E3