/// <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;
 }
 /// <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;
 }
Exemple #5
0
 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">
        ///  &lt;%= Html.Telerik().Grid(Model)
        ///             .Name("Grid")
        ///             .Sorting(sorting => sorting.SortMode(GridSortMode.MultipleColumns))
        /// %&gt;
        /// </code>
        /// </example>
        public virtual GridSortSettingsBuilder <TModel> SortMode(GridSortMode value)
        {
            settings.SortMode = value;

            return(this);
        }
Exemple #7
0
 public abstract void SetSortMode(Position p_Position, GridSortMode p_Mode);
Exemple #8
0
 /// <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);
Exemple #9
0
 /// <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;
 }
 /// <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;
 }