Pager, missing refference

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
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?
5 years ago
Have you solved the problem, please? I met the same problem.
5 years ago
Same here. Not possible to use pager in plugin.
1 year ago
Sure not possible use it in plugin?
Thank you
1 year ago
@khedr
This is an old post.  What version of nopCommerce are you using?  Where do you want to do paging?
1 year ago
Version 4.4.
New plugin.. I want to show list of items in public store.

Thank you
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.