Пример #1
0
        public ActionResult Paging(bool? pageInput, bool? nextPrevious, bool? numeric, GridPagerPosition? position, int? currentPage, bool? pageSize)
        {
            ViewData["pageInput"] = pageInput ?? false;
            ViewData["nextPrevious"] = nextPrevious ?? true;
            ViewData["numeric"] = numeric ?? true;
            ViewData["pageSize"] = pageSize ?? false;
            ViewData["position"] = position ?? GridPagerPosition.Bottom;
            ViewData["currentPage"] = currentPage ?? 1;

            return View(GetOrders());
        }
        /// <summary>
        /// Sets the position at which to display the pager.
        /// </summary>
        /// <param name="value">The pager position.</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Telerik().Grid(Model)
        ///             .Name("Grid")
        ///             .Pageable(paging => paging.Position(GridPagerPosition.Bottom))
        /// %&gt;
        /// </code>
        /// </example>
        public virtual GridPagerSettingsBuilder Position(GridPagerPosition value)
        {
            pager.Position = value;

            return this;
        }
        /// <summary>
        /// Sets the position at which to display the pager.
        /// </summary>
        /// <param name="value">The pager position.</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Telerik().Grid(Model)
        ///             .Name("Grid")
        ///             .Pageable(paging => paging.Position(GridPagerPosition.Bottom))
        /// %&gt;
        /// </code>
        /// </example>
        public virtual GridPagerSettingsBuilder Position(GridPagerPosition value)
        {
            pager.Position = value;

            return(this);
        }