This project is read-only.

pageGrids undefined javascript runtime error

Nov 22, 2013 at 1:06 PM
Hi
migrated to 3. manually removed and added all files.

in View:
<link href="@Url.Content("~/Content/Gridmvc.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet" type="text/css" />

<script src="@Url.Content("~/Scripts/jquery-1.8.2.min.js")" type="text/javascript"> </script>
<script src="@Url.Content("~/Scripts/gridmvc.min.js")" type="text/javascript"> </script>

<script> $(function () { //alert("gaga"); var v = pageGrids; //just for test pageGrids.RolesGrid.onRowSelect(function (e) { alert(e.row.Title); alert(e.row.RoleName); }); }); </script>
@Html.Grid(Model).Named("RolesGrid").Columns(columns => etc
Runtimeerror, pageGrids undifined
Grid as such runs correctly.

Thank You very much for Info
Michael
                {
Nov 25, 2013 at 4:02 PM
Edited Nov 25, 2013 at 4:15 PM
Removed, I thought I had similar problem, turns out i didn't.