Ejemplo n.º 1
0
 public GridDataSourceEnumerator(IEnumerable dataSource, IGridItemCreator creator, GridInsertRowPosition insertRowPosition)
     : this(dataSource, creator, 0)
 {
     this.insertRowPosition = insertRowPosition;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets insert row position.
        /// </summary>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Kendo().Grid&lt;Order&gt;()
        ///             .Name("Orders")
        ///             .Editable(settings => settings.CreateAt(GridInsertRowPosition.Bottom))
        /// %&gt;
        /// </code>
        /// </example>
        public GridEditingSettingsBuilder <T> CreateAt(GridInsertRowPosition position)
        {
            settings.CreateAt = position;

            return(this);
        }
        public GridEditingSettingsBuilder <T> InsertRowPosition(GridInsertRowPosition position)
        {
            settings.InsertRowPosition = position;

            return(this);
        }