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
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
add a comment |
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
add a comment |
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
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
asp.net-mvc-5 mvcgrid
edited Mar 7 at 12:34
Sathish
asked Mar 7 at 11:39
SathishSathish
3,63331640
3,63331640
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
its working but i need checkbox column that's why i tried to move mvc6
– Sathish
Mar 11 at 7:46
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
its working but i need checkbox column that's why i tried to move mvc6
– Sathish
Mar 11 at 7:46
add a comment |
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
its working but i need checkbox column that's why i tried to move mvc6
– Sathish
Mar 11 at 7:46
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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