Example #1
0
 /// <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;
 }
Example #2
0
 /// <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;
 }
Example #3
0
 /// <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;
 }
Example #4
0
 /// <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;
 }
Example #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);
        }
Example #7
0
 public abstract void SetSortMode(Position p_Position, GridSortMode p_Mode);
Example #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);
Example #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;
 }
Example #10
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);
Example #11
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;
 }