Exemplo n.º 1
0
        public void Sortable_SetsIsEnabled(Boolean?isEnabled, Boolean?expected)
        {
            foreach (IGridColumn column in htmlGrid.Grid.Columns)
            {
                column.Sort.IsEnabled = isEnabled;
            }

            htmlGrid.Sortable();

            foreach (IGridColumn actual in htmlGrid.Grid.Columns)
            {
                Assert.Equal(expected, actual.Sort.IsEnabled);
            }
        }
Exemplo n.º 2
0
        public void Sortable_Set_SetsIsSortable(Boolean?isColumnSortable, Boolean isGridSortable, Boolean?expectedIsSortable)
        {
            foreach (IGridColumn column in htmlGrid.Grid.Columns)
            {
                column.IsSortable = isColumnSortable;
            }

            htmlGrid.Sortable(isGridSortable);

            foreach (IGridColumn actual in htmlGrid.Grid.Columns)
            {
                Assert.Equal(expectedIsSortable, actual.IsSortable);
            }
        }