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

Why are on-board computers allowed to change controls without notifying the pilots?

Star/Wye electrical connection math symbol

How can a jailer prevent the Forge Cleric's Artisan's Blessing from being used?

Finding all intervals that match predicate in vector

Failed to fetch jessie backports repository

Personal Teleportation as a Weapon

Are there any comparative studies done between Ashtavakra Gita and Buddhim?

What would be the benefits of having both a state and local currencies?

At which point does a character regain all their Hit Dice?

Is the destination of a commercial flight important for the pilot?

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

What defines a dissertation?

Your magic is very sketchy

Go Pregnant or Go Home

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

when is out of tune ok?

Was Spock the First Vulcan in Starfleet?

What will be the benefits of Brexit?

Ways to speed up user implemented RK4

Can a monster with multiattack use this ability if they are missing a limb?

How does a character multiclassing into warlock get a focus?

Tiptoe or tiphoof? Adjusting words to better fit fantasy races

How could Frankenstein get the parts for his _second_ creature?

How will losing mobility of one hand affect my career as a programmer?



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?

          Алба-Юлія

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