Does the GridColumn.Template work if set in the controller rather than the view? I'm trying a pretty straightforward example, but it doesn't seem to have any affect on how the cells are rendered. Is there any reason it would fail silently?
Hi Josh,This is what I've tried in the sample I'm attaching to this reply:
gridModel.Columns = new List<GridColumn>();gridModel.Columns.Add(new GridColumn("Project Id", "ProjectId", "number", "100px"));gridModel.Columns[0].Template = "Project ID: ${ProjectId}";
Thanks Borislav! I really appreciate you going to all the trouble of putting together an entire VS solution for this. Unfortunately, when run, it only displays a blank page, no grid. I went to /Model/DefinedColumns as well, but no dice, blank page.
Weird ...Can you please post a screenshot of the blank page, but with your browser's JavaScript console visible?(Firefox's Firebug will be perfect)I'm guessing that there's an HTTP request that's failing and this is why the page is blank and a JS error is also present, but I need to see what it is.Looking forward to your reply.
No problem. It looks like you accidentally set all your references to localhost instead of files hosted somewhere, or you intended to do so but didn't include the files in the solution.
As a side note, you set literal paths (i.e. "http://localhost/"). You should use Url.Content so the paths are generated with the current domain / port info, just in case you didn't typically do this.
Looks like you'll want to save that image to view it. Most of it gets hidden in the post.
No worries - I'm smarter than the average bear and I know how to right-click and use "Open image in a new tab" :)
So it's as I thought ... in my sample I use a virtual directory that points to the JQuery folder of the installed NetAdvantage for jQuery.In this case the folder is callled ig_ui12.1 because this was the volume release I was using (2012.1).So you can:1. Add that virtual folder to your computer's IIS serveror2. Add the JS, CSS and image files from NetAdvantage for jQuery into the MVC project's Scripts folder and reference them from there.I'm heavily relying on virtual directories, because their contents sync up with the version of the product I have installed (and I need to install a lot of versions :)) and also help slim down the MVC sample so I can attach it to the forum.Sorry about the caused inconvenience - should have told you about the virtual directory in the first place :/