/// <summary> /// Initializes a new instance of the <see cref="SortStatus"/> class. /// </summary> /// <param name="p_Mode">Status of current sort.</param> /// <param name="p_EnableSort">True to enable sort otherwise false</param> public SortStatus(GridSortMode p_Mode, bool p_EnableSort) { mode = p_Mode; enableSort = p_EnableSort; comparer = null; }
/// <summary> /// Initializes a new instance of the <see cref="SortStatus"/> class. /// </summary> /// <param name="p_Mode">Status of current sort.</param> /// <param name="p_EnableSort">True to enable sort otherwise false</param> /// <param name="p_Comparer">Comparer used to sort the column. The comparer will take 2 Cell. /// If null the default ValueCellComparer is used.</param> public SortStatus(GridSortMode p_Mode, bool p_EnableSort, System.Collections.IComparer p_Comparer) : this(p_Mode, p_EnableSort) { comparer = p_Comparer; }
public virtual void SetSortMode(Position p_Position, GridSortMode p_Mode) { SortMode = p_Mode; }
/// <summary> /// Sets the sort mode of the grid. /// </summary> /// <param name="value">The value.</param> /// <example> /// <code lang="CS"> /// <%= Html.Telerik().Grid(Model) /// .Name("Grid") /// .Sorting(sorting => sorting.SortMode(GridSortMode.MultipleColumns)) /// %> /// </code> /// </example> public virtual GridSortSettingsBuilder <TModel> SortMode(GridSortMode value) { settings.SortMode = value; return(this); }
public abstract void SetSortMode(Position p_Position, GridSortMode p_Mode);
/// <summary> /// Set the current sort mode /// </summary> /// <param name="position">The position.</param> /// <param name="mode">The mode.</param> public abstract void SetSortMode(Position position, GridSortMode mode);
/// <summary> /// Set the current sort mode /// </summary> /// <param name="position">The position.</param> /// <param name="mode">The mode.</param> public virtual void SetSortMode(Position position, GridSortMode mode) { this.sortMode = mode; }