While Create gridview using grid.Mvc6 showing errorMVC:- Integration of mvc6.gridHTTP Error 500.19 and error code : 0x80070021DevExpress MVC GridView callbacks frozen after first call backDevExpress GridView conflicts with DatePicker Jquery fileC# “Anonymous” type of List stored inside a DictionaryUnhandled Excecution error while debugging project in asp.net mvc5Kendo UI DropDownListFor html wrapper - How to set up the BindTo to a collection in model? Rather than ViewData or ViewbagASP.NET MVC Error on Creating a new projectError occurs while displaying Data in View asp.net mvc 5Kendo MVC Razor Grid Custom Command does not have Action DefinitionHandlebars not showing values in Gridview

How do we know the LHC results are robust?

Is this apparent Class Action settlement a spam message?

Is exact Kanji stroke length important?

What does this 7 mean above the f flat

Can I use my Chinese passport to enter China after I acquired another citizenship?

How do I define a right arrow with bar in LaTeX?

Bash method for viewing beginning and end of file

How do I pronounce 5/2?

What is the intuitive meaning of having a linear relationship between the logs of two variables?

What would happen if the UK refused to take part in EU Parliamentary elections?

There is only s̶i̶x̶t̶y one place he can be

when is out of tune ok?

Failed to fetch jessie backports repository

Is there an Impartial Brexit Deal comparison site?

Is there any easy technique written in Bhagavad GITA to control lust?

What's the purpose of "true" in bash "if sudo true; then"

Is expanding the research of a group into machine learning as a PhD student risky?

First index is not integer using foreach loop from 0

What is the difference between "behavior" and "behaviour"?

What is the "Sexateria"?

Where in the Bible does the greeting ("Dominus Vobiscum") used at Mass come from?

Why, precisely, is argon used in neutrino experiments?

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

What does "I’d sit this one out, Cap," imply or mean in the context?



While Create gridview using grid.Mvc6 showing error


MVC:- Integration of mvc6.gridHTTP Error 500.19 and error code : 0x80070021DevExpress MVC GridView callbacks frozen after first call backDevExpress GridView conflicts with DatePicker Jquery fileC# “Anonymous” type of List stored inside a DictionaryUnhandled Excecution error while debugging project in asp.net mvc5Kendo UI DropDownListFor html wrapper - How to set up the BindTo to a collection in model? Rather than ViewData or ViewbagASP.NET MVC Error on Creating a new projectError occurs while displaying Data in View asp.net mvc 5Kendo MVC Razor Grid Custom Command does not have Action DefinitionHandlebars not showing values in Gridview













0















In my project i try to add grid but its showing following error 'HtmlHelper>' does not contain a definition for 'Grid' and the best extension method overload
'MvcGridExtensions.Grid(IHtmlHelper, IEnumerable)' requires a receiver of type 'IHtmlHelper'



Code:



@model IEnumerable<SCM_MVC.Models.XXXXX>
@using NonFactors.Mvc.Grid;

@(Html
.Grid(Model)
.Build(columns =>

columns.Add(model => model.select).Titled("Name");
columns.Add(model => model.Surname).Titled("Surname");
columns.Add(model => model.MaritalStatus).Titled("Marital status");

columns.Add(model => model.Age).Titled("Age");
columns.Add(model => model.Birthday).Titled("Birthday").Formatted("0:d");
columns.Add(model => model.IsWorking).Titled("Employed");
)
.Empty("No data found")
.Filterable()
.Sortable()
.Pageable()
)


What am doing wrong here?










share|improve this question




























    0















    In my project i try to add grid but its showing following error 'HtmlHelper>' does not contain a definition for 'Grid' and the best extension method overload
    'MvcGridExtensions.Grid(IHtmlHelper, IEnumerable)' requires a receiver of type 'IHtmlHelper'



    Code:



    @model IEnumerable<SCM_MVC.Models.XXXXX>
    @using NonFactors.Mvc.Grid;

    @(Html
    .Grid(Model)
    .Build(columns =>

    columns.Add(model => model.select).Titled("Name");
    columns.Add(model => model.Surname).Titled("Surname");
    columns.Add(model => model.MaritalStatus).Titled("Marital status");

    columns.Add(model => model.Age).Titled("Age");
    columns.Add(model => model.Birthday).Titled("Birthday").Formatted("0:d");
    columns.Add(model => model.IsWorking).Titled("Employed");
    )
    .Empty("No data found")
    .Filterable()
    .Sortable()
    .Pageable()
    )


    What am doing wrong here?










    share|improve this question


























      0












      0








      0








      In my project i try to add grid but its showing following error 'HtmlHelper>' does not contain a definition for 'Grid' and the best extension method overload
      'MvcGridExtensions.Grid(IHtmlHelper, IEnumerable)' requires a receiver of type 'IHtmlHelper'



      Code:



      @model IEnumerable<SCM_MVC.Models.XXXXX>
      @using NonFactors.Mvc.Grid;

      @(Html
      .Grid(Model)
      .Build(columns =>

      columns.Add(model => model.select).Titled("Name");
      columns.Add(model => model.Surname).Titled("Surname");
      columns.Add(model => model.MaritalStatus).Titled("Marital status");

      columns.Add(model => model.Age).Titled("Age");
      columns.Add(model => model.Birthday).Titled("Birthday").Formatted("0:d");
      columns.Add(model => model.IsWorking).Titled("Employed");
      )
      .Empty("No data found")
      .Filterable()
      .Sortable()
      .Pageable()
      )


      What am doing wrong here?










      share|improve this question
















      In my project i try to add grid but its showing following error 'HtmlHelper>' does not contain a definition for 'Grid' and the best extension method overload
      'MvcGridExtensions.Grid(IHtmlHelper, IEnumerable)' requires a receiver of type 'IHtmlHelper'



      Code:



      @model IEnumerable<SCM_MVC.Models.XXXXX>
      @using NonFactors.Mvc.Grid;

      @(Html
      .Grid(Model)
      .Build(columns =>

      columns.Add(model => model.select).Titled("Name");
      columns.Add(model => model.Surname).Titled("Surname");
      columns.Add(model => model.MaritalStatus).Titled("Marital status");

      columns.Add(model => model.Age).Titled("Age");
      columns.Add(model => model.Birthday).Titled("Birthday").Formatted("0:d");
      columns.Add(model => model.IsWorking).Titled("Employed");
      )
      .Empty("No data found")
      .Filterable()
      .Sortable()
      .Pageable()
      )


      What am doing wrong here?







      asp.net-mvc-5 mvcgrid






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 7 at 12:34







      Sathish

















      asked Mar 7 at 11:39









      SathishSathish

      3,63331640




      3,63331640






















          1 Answer
          1






          active

          oldest

          votes


















          0














          The problem occurred because NonFactors.Grid.Mvc6 package uses IHtmlHelper interface derived from Microsoft.AspNetCore.Mvc.Rendering namespace, while the grid should use HtmlHelper class from System.Web.Mvc namespace, hence the package is incompatible with MVC 5.



          I suggest you to uninstall NonFactors.Grid.Mvc6 package (since it designed for ASP.NET Core MVC) and use NonFactors.Grid.Mvc5 package instead, by using Package Manager or console command:



          Uninstall-Package NonFactors.Grid.Mvc6
          Install-Package NonFactors.Grid.Mvc5


          Note:



          You can compare the contents of Grid extension method in MVC 5 and Core MVC version, which proves different namespace usage.



          Related issue:



          MVC:- Integration of mvc6.grid






          share|improve this answer























          • its working but i need checkbox column that's why i tried to move mvc6

            – Sathish
            Mar 11 at 7:46










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55042929%2fwhile-create-gridview-using-grid-mvc6-showing-error%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          The problem occurred because NonFactors.Grid.Mvc6 package uses IHtmlHelper interface derived from Microsoft.AspNetCore.Mvc.Rendering namespace, while the grid should use HtmlHelper class from System.Web.Mvc namespace, hence the package is incompatible with MVC 5.



          I suggest you to uninstall NonFactors.Grid.Mvc6 package (since it designed for ASP.NET Core MVC) and use NonFactors.Grid.Mvc5 package instead, by using Package Manager or console command:



          Uninstall-Package NonFactors.Grid.Mvc6
          Install-Package NonFactors.Grid.Mvc5


          Note:



          You can compare the contents of Grid extension method in MVC 5 and Core MVC version, which proves different namespace usage.



          Related issue:



          MVC:- Integration of mvc6.grid






          share|improve this answer























          • its working but i need checkbox column that's why i tried to move mvc6

            – Sathish
            Mar 11 at 7:46















          0














          The problem occurred because NonFactors.Grid.Mvc6 package uses IHtmlHelper interface derived from Microsoft.AspNetCore.Mvc.Rendering namespace, while the grid should use HtmlHelper class from System.Web.Mvc namespace, hence the package is incompatible with MVC 5.



          I suggest you to uninstall NonFactors.Grid.Mvc6 package (since it designed for ASP.NET Core MVC) and use NonFactors.Grid.Mvc5 package instead, by using Package Manager or console command:



          Uninstall-Package NonFactors.Grid.Mvc6
          Install-Package NonFactors.Grid.Mvc5


          Note:



          You can compare the contents of Grid extension method in MVC 5 and Core MVC version, which proves different namespace usage.



          Related issue:



          MVC:- Integration of mvc6.grid






          share|improve this answer























          • its working but i need checkbox column that's why i tried to move mvc6

            – Sathish
            Mar 11 at 7:46













          0












          0








          0







          The problem occurred because NonFactors.Grid.Mvc6 package uses IHtmlHelper interface derived from Microsoft.AspNetCore.Mvc.Rendering namespace, while the grid should use HtmlHelper class from System.Web.Mvc namespace, hence the package is incompatible with MVC 5.



          I suggest you to uninstall NonFactors.Grid.Mvc6 package (since it designed for ASP.NET Core MVC) and use NonFactors.Grid.Mvc5 package instead, by using Package Manager or console command:



          Uninstall-Package NonFactors.Grid.Mvc6
          Install-Package NonFactors.Grid.Mvc5


          Note:



          You can compare the contents of Grid extension method in MVC 5 and Core MVC version, which proves different namespace usage.



          Related issue:



          MVC:- Integration of mvc6.grid






          share|improve this answer













          The problem occurred because NonFactors.Grid.Mvc6 package uses IHtmlHelper interface derived from Microsoft.AspNetCore.Mvc.Rendering namespace, while the grid should use HtmlHelper class from System.Web.Mvc namespace, hence the package is incompatible with MVC 5.



          I suggest you to uninstall NonFactors.Grid.Mvc6 package (since it designed for ASP.NET Core MVC) and use NonFactors.Grid.Mvc5 package instead, by using Package Manager or console command:



          Uninstall-Package NonFactors.Grid.Mvc6
          Install-Package NonFactors.Grid.Mvc5


          Note:



          You can compare the contents of Grid extension method in MVC 5 and Core MVC version, which proves different namespace usage.



          Related issue:



          MVC:- Integration of mvc6.grid







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 11 at 3:47









          Tetsuya YamamotoTetsuya Yamamoto

          17.1k42342




          17.1k42342












          • its working but i need checkbox column that's why i tried to move mvc6

            – Sathish
            Mar 11 at 7:46

















          • its working but i need checkbox column that's why i tried to move mvc6

            – Sathish
            Mar 11 at 7:46
















          its working but i need checkbox column that's why i tried to move mvc6

          – Sathish
          Mar 11 at 7:46





          its working but i need checkbox column that's why i tried to move mvc6

          – Sathish
          Mar 11 at 7:46



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55042929%2fwhile-create-gridview-using-grid-mvc6-showing-error%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

          Алба-Юлія

          Захаров Федір Захарович