ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid Mod Function throws errors (wrong method params lambda expression to string[])
Title:
B
I
{code}
?
Hi, I did manage to get the grid things to work with some smaller problems. Now I tried to move the code to some other web-project but get some strange error with the mod function on my grid. The project has references to AwesomeMvc and AwesomeMvcMods (same versions like in the working project) The page contains <code> @using Omu.AwesomeMvc; ... @Html.InitCrudPopupsForGrid("Users", "Users") ... @(Html.Awe().Grid("Users") .Mod(o => o.PageInfo().ColumnsSelector()) .Url(Url.Action("GridGetItems", "Users")) .Parent("txtGridSearch", "search") .Height(0) .Groupable(false) .Sortable(false) .Columns( new Column { Bind = "Id", Width=100}, new Column { Bind = "IsActive", Width=90}, ... ... ) ) </code> The problem is on the Mod() part. It says that it cannot convert lambda expression to string[] In my working demo the call points to Assembly Omu.AwesomeMvcMods.dll, v1.0.0.0 public static Grid<T> Mod<T>(this Grid<T> grid, Action<GridModCfg> setCfg = null) which is correct. In the second one which is not working it points to Assembly Omu.AwesomeMvc.dll, v4.9.1.0 public Grid<T> Mod(params string[] o) and i don't get the point what i've missed so that the wrong (base) assembly is userd and not the mvc mods one. Any ideas? Best regards M
Save Changes
Cancel
Martin Strojek
asked at 08 Sep 2016
the Mod with lambda parameter is an extension from Omu.AwesomeMvcMods, you need to add the using in web.config, follow the installation steps
at 08 Sep 2016
Omu
Sorry for the stupid question - found the part in the View-Folders web.config. Will never forget that part, thanks a lot.
at 08 Sep 2016
Martin Strojek
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK