public void TableCellProperties() { var x = new HtmlTableCellElement { ColSpan = 1, RowSpan = 2 }; Assert.Equal(1, x.ColSpan); Assert.Equal(2, x.RowSpan); }
public static void SortBy(HtmlTableCellElement header, JsString pe) { J(LastSortHeader).removeClass("Sorted").removeClass("Descending"); IsLastSortDescending = LastSort == pe && !IsLastSortDescending; LastSort = pe; LastSortHeader = header; J(LastSortHeader).addClass("Sorted"); J(LastSortHeader).toggleClass("Descending", IsLastSortDescending); var rows = Grid.Rows.OrderBy(t => t.Data.As <JsObject>()[pe], IsLastSortDescending); Grid.DeleteAllRows(); foreach (var row in rows) { Grid.AddRow(row); } }