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
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