I am integrating the code in my application i am getting this error.
CS1502: The best overloaded method match for 'System.Web.Helpers.WebGrid.WebGrid(System.Collections.Generic.IEnumerable, System.Collections.Generic.IEnumerable, string, int, bool, bool, string, string, string, string, string, string, string)' has some invalid arguments
in the line var grid = new WebGrid(Model, canPage: true, rowsPerPage: 5, selectionFieldName: "selectedRow",ajaxUpdateContainerId: "gridContent");
Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.Helpers.WebGrid.Bind(System.Collections.Generic.IEnumerable, System.Collections.Generic.IEnumerable, bool, int)' has some invalid arguments
grid.Column("AssignmentName", "Assignment", format: @@Html.ActionLink(item.AssignmentName, "Details", new { id = item.AssignmentID }, null)),
But i get this error. how do i rectify it?
Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.Helpers.WebGrid.Column(string, string, System.Func, string, bool)' has some invalid arguments
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 10, 2013, 4:44 AM EDT
You can use WebGrid instead of Jquery Grid.
http://www.dotnetcurry.com/ShowArticle.aspx?ID=615
Regards,
Iftikar
vidhyaRank #4,868 · 321 reputationPosted Jul 10, 2013, 11:19 PM EDT
It displays like this if i use version=2. how to rectify it.
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 10, 2013, 11:31 PM EDT
Regards,
Iftikar
vidhyaRank #4,868 · 321 reputationPosted Jul 10, 2013, 11:45 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 10, 2013, 11:52 PM EDT
http://www.codeproject.com/Tips/615776/WebGrid-in-ASP-NET-MVC4
Regards,
Iftikar
vidhyaRank #4,868 · 321 reputationPosted Jul 11, 2013, 12:56 AM EDT
CS1502: The best overloaded method match for 'System.Web.Helpers.WebGrid.WebGrid(System.Collections.Generic.IEnumerable
in the line
i added this in my application
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 11, 2013, 1:02 AM EDT
Regards,
Iftikar
vidhyaRank #4,868 · 321 reputationPosted Jul 11, 2013, 1:16 AM EDT
Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.Helpers.WebGrid.Bind(System.Collections.Generic.IEnumerable
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 11, 2013, 1:28 AM EDT
Regards,
Iftikar
vidhyaRank #4,868 · 321 reputationPosted Jul 11, 2013, 1:40 AM EDT
grid.Bind(Model.Assignments, rowCount: Model.Assignments.Count, autoSortAndPage: true);
but the design is not clear.
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 11, 2013, 1:48 AM EDT
Regards,
Iftikar
vidhyaRank #4,868 · 321 reputationPosted Jul 11, 2013, 1:52 AM EDT
where x is Model.Assignemnts
@if (x.ProjectConnected == true)
{
@x.CourseProjectName (Milestone: @Html.ActionLink(x.CourseProjMilestoneName, "Details", "PrjMgmt", new { id = x.CourseProjectId }, null))
}
else
{
}
vidhyaRank #4,868 · 321 reputationPosted Jul 11, 2013, 2:11 AM EDT
grid.Column("AssignmentName", "Assignment", format: @
But i get this error. how do i rectify it?
Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.Helpers.WebGrid.Column(string, string, System.Func
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts