Pager, missing refference

Posted: December 20, 2017 at 2:55 AM Quote #198105
Hello!
I have this error


Compiler error message: CS1061: "System.Web.Mvc.HtmlHelper <Nop.Plugin.Misc.FeedbackAboutUs.Models.FeedBackOverviewModel>" does not contain a definition for "Pager". Could not find the Pager extension method that accepts the first argument of type "System.Web.Mvc.HtmlHelper <Nop.Plugin.Misc.FeedbackAboutUs.Models.FeedBackOverviewModel>" (did you skip the using directive or the assembly reference?



View


@model FeedBackOverviewModel
@using Nop.Plugin.Misc.FeedbackAboutUs.Models
@using DevPartner.Nop.Plugin.Core.Services
@using DevPartner.Nop.Plugin.Core.Services.DPNop
@using DevPartner.Prosvet.Models
@using Nop.Core
@using Nop.Core.Domain.Catalog
@using Nop.Core.Infrastructure
@using Nop.Web.Framework.Themes
@using Nop.Web.Framework
@using Nop.Web.Framework.UI
@using Nop.Web.Framework.UI.Paging

.......................


        @{
            var pager = Html.Pager(Model.PagingFilteringContext).QueryParam("pagenumber");
        }



Class on Model.PagingFilteringContext

public class PagingFilteringModel : BasePageableModel
    {
        public PagingFilteringModel()
        {
            this.FeedBacksList = new List<FeedbackOverView>();
        }
        public IList<FeedbackOverView> FeedBacksList { get; set; }
        protected virtual string ExcludeQueryStringParams(string url, IWebHelper webHelper)
        {
            //comma separated list of parameters to exclude
            const string excludedQueryStringParams = "pagenumber";
            var excludedQueryStringParamsSplitted = excludedQueryStringParams.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            foreach (string exclude in excludedQueryStringParamsSplitted)
                url = webHelper.RemoveQueryString(url, exclude);
            return url;
        }
    }



I dont get whats wrong?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: April 26, 2018 at 4:31 AM Quote #203672
Have you solved the problem, please? I met the same problem.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 12, 2018 at 5:52 AM Quote #208519
Same here. Not possible to use pager in plugin.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.