<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>MVCjQueryControls Discussions Rss Feed</title><link>http://mvcjquerycontrols.codeplex.com/Thread/List.aspx</link><description>MVCjQueryControls Discussions Rss Description</description><item><title>New Post: How to add a datepicker to gridedit form</title><link>http://mvcjquerycontrols.codeplex.com/discussions/428833</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I need to add a datepicker togridedit ,how can I do?&lt;/p&gt;
&lt;/div&gt;</description><author>xfdnzb</author><pubDate>Tue, 08 Jan 2013 03:52:54 GMT</pubDate><guid isPermaLink="false">New Post: How to add a datepicker to gridedit form 20130108035254A</guid></item><item><title>New Post: ComboColumnRenderer does not populate in edit mode</title><link>http://mvcjquerycontrols.codeplex.com/discussions/405064</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I am using VB.NET version of the example in the MVC Controls Example project to display a combo as follows:&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;Dim&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;
 cn &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;New&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;GridColumnModelList&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;Of&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;V_MRAPrimaryCarePhysicians&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;Function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;(p)
 p.MRAConsultant).SetName(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; color:#a31515; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#a31515; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#a31515; font-size:x-small"&gt;&amp;quot;V_MRAConsultants.username&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;).SetCaption(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; color:#a31515; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#a31515; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#a31515; font-size:x-small"&gt;&amp;quot;MRA
 Consultant&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;).SetColumnRenderer(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#0000ff; font-size:x-small"&gt;New&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#2b91af; font-size:x-small"&gt;ComboColumnRenderer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; color:#a31515; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#a31515; font-size:x-small"&gt;&lt;span style="font-family:Consolas; color:#a31515; font-size:x-small"&gt;&amp;quot;/Assessment/GetConsultants&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;
&lt;span style="font-family:Consolas; font-size:x-small"&gt;))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&lt;span style="font-family:Consolas; font-size:x-small"&gt;&amp;#65279;However, when in edit the combo does not appear.&amp;nbsp; Can someone offer some advice?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>ronbess</author><pubDate>Thu, 29 Nov 2012 20:49:57 GMT</pubDate><guid isPermaLink="false">New Post: ComboColumnRenderer does not populate in edit mode 20121129084957P</guid></item><item><title>New Post: JQGrid is not configuring in IIS</title><link>http://mvcjquerycontrols.codeplex.com/discussions/275993</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I also meet this problem in my local machine IIS&lt;/p&gt;
&lt;p&gt;It's seems the following code in MVCControlsScriptManager makes the Script and CSS files point to a wrong location.&lt;/p&gt;
&lt;p&gt;&amp;quot;RegisterScriptsAndStyles(&lt;span style="color:#a31515"&gt;&amp;quot;../../Content/MVCControls/&amp;quot;&lt;/span&gt;,
&lt;span style="color:#a31515"&gt;&amp;quot;../../Scripts/MVCControls/&amp;quot;&lt;/span&gt;);&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;After:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is my change.&lt;/p&gt;
&lt;p&gt;RegisterScriptsAndStyles(System.Web.VirtualPathUtility.ToAbsolute(&amp;quot;~/Content/MVCControls/&amp;quot;), System.Web.VirtualPathUtility.ToAbsolute(&amp;quot;~/Scripts/MVCControls/&amp;quot;));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It works in my machine now.&lt;/p&gt;
&lt;/div&gt;</description><author>kennethl</author><pubDate>Thu, 30 Aug 2012 06:53:07 GMT</pubDate><guid isPermaLink="false">New Post: JQGrid is not configuring in IIS 20120830065307A</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;&lt;em&gt;Almost&lt;/em&gt;&amp;nbsp;same name, this is MVC &lt;span style="text-decoration: underline;"&gt;jQuery&lt;/span&gt; Controls. But yes, I've been caught by that too :)&lt;/p&gt;&lt;/div&gt;</description><author>PhilmanCJ</author><pubDate>Mon, 18 Jun 2012 16:25:52 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120618042552P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Oh.... same name, different product. No wonder I was confused.&lt;/p&gt;&lt;/div&gt;</description><author>BillyM</author><pubDate>Mon, 18 Jun 2012 15:34:14 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120618033414P</guid></item><item><title>New Post: Dynamically add columns to GridColumnModelList</title><link>http://mvcjquerycontrols.codeplex.com/discussions/355852</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Could you post the code building the Grid control?&lt;/p&gt;&lt;/div&gt;</description><author>sternr</author><pubDate>Mon, 18 Jun 2012 13:21:02 GMT</pubDate><guid isPermaLink="false">New Post: Dynamically add columns to GridColumnModelList 20120618012102P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;There's still no Nuget package, though I'm working on one&lt;/p&gt;&lt;/div&gt;</description><author>sternr</author><pubDate>Mon, 18 Jun 2012 13:19:45 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120618011945P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;
&lt;p&gt;I believe it is the latest version, though I added headers to the Javascript files.
&lt;/p&gt;
&lt;p&gt;As for Nuget, last time I checked there was not a version of this control on NuGet. There is a another package MVC Controls Toolkit, but that is a different project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Phil&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>PhilmanCJ</author><pubDate>Mon, 18 Jun 2012 13:13:24 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120618011324P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks, Phil. This works now.&lt;/p&gt;
&lt;p&gt;Which version of the controls are you using? I see there is a package available for NuGet that seems to be newer and claims to have Razor support.&lt;/p&gt;&lt;/div&gt;</description><author>BillyM</author><pubDate>Fri, 15 Jun 2012 17:24:47 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120615052447P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Here is a small site using MVC3 and the grid.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a title="http://dl.dropbox.com/u/19201607/MvcJqueryControlsApplication.zip" href="http://dl.dropbox.com/u/19201607/MvcJqueryControlsApplication.zip"&gt;http://dl.dropbox.com/u/19201607/MvcJqueryControlsApplication.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I noted when making a sample project that using @model dynamic causes the MVC Controls Grid&amp;nbsp;extension&amp;nbsp;method not to work. As well a default controller will have their layout set to null, so any jQuery and javascript includes you have in there will not be used, thus making the grid not work. However I don't see either of those issues with the sample you showed us.&lt;/p&gt;
&lt;p&gt;Phil&lt;/p&gt;&lt;/div&gt;</description><author>PhilmanCJ</author><pubDate>Fri, 15 Jun 2012 13:44:03 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120615014403P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I am still unable to get this to work. Does anyone have a link to a site showing a complete example of MVC Controls using MVC 3 / Razor?&lt;/p&gt;&lt;/div&gt;</description><author>BillyM</author><pubDate>Thu, 14 Jun 2012 22:17:31 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120614101731P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;SharedStrings is my resource file, you will have to use your own strings.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try this for your index:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;div style="color: black; background-color: white;"&gt;&lt;pre&gt;@&lt;span style="color: blue;"&gt;using&lt;/span&gt; MVC.Controls.Grid
@&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Web.Mvc
@&lt;span style="color: blue;"&gt;using&lt;/span&gt; UI.Web.Models
@model UI.Web.Models.ProductsViewModel
           
@{
    ViewBag.Title = &lt;span style="color: #a31515;"&gt;"Home Page"&lt;/span&gt;;
}

&amp;lt;h2&amp;gt;@ViewBag.Message&amp;lt;/h2&amp;gt;

@Html.Grid(
&lt;span style="color: blue;"&gt;new&lt;/span&gt; GridControl()
        .SetName(&lt;span style="color: #a31515;"&gt;"grid"&lt;/span&gt;)
        .SetPageSize(10)
        .SetIsAutoSize(&lt;span style="color: blue;"&gt;true&lt;/span&gt;)
        .SetListUrl(&lt;span style="color: #a31515;"&gt;"Home/List"&lt;/span&gt;)
        .SetHeight(&lt;span style="color: #a31515;"&gt;"200"&lt;/span&gt;)
        .AddColumn(&lt;span style="color: blue;"&gt;new&lt;/span&gt; GridColumnModel(&lt;span style="color: #a31515;"&gt;"Id"&lt;/span&gt;).SetAsPrimaryKey())
        .AddColumn(&lt;span style="color: blue;"&gt;new&lt;/span&gt; GridColumnModel(&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;))
        .AddColumn(&lt;span style="color: blue;"&gt;new&lt;/span&gt; GridColumnModel(&lt;span style="color: #a31515;"&gt;"CompanyName"&lt;/span&gt;))
        .AddColumn(&lt;span style="color: blue;"&gt;new&lt;/span&gt; GridColumnModel(&lt;span style="color: #a31515;"&gt;"Price"&lt;/span&gt;))
)
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;</description><author>PhilmanCJ</author><pubDate>Thu, 14 Jun 2012 16:55:24 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120614045524P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;So, I tried this:&lt;/p&gt;
&lt;p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; ProductsViewModel
{
    &lt;span style="color: blue;"&gt;public&lt;/span&gt; GridControl Grid = &lt;span style="color: blue;"&gt;new&lt;/span&gt; GridControl()
        .SetName(&lt;span style="color: #a31515;"&gt;"grid"&lt;/span&gt;)
        .SetPageSize(10)
        .SetIsAutoSize(&lt;span style="color: blue;"&gt;true&lt;/span&gt;)
        .SetListUrl(&lt;span style="color: #a31515;"&gt;"Home/List"&lt;/span&gt;)
        .SetHeight(&lt;span style="color: #a31515;"&gt;"200"&lt;/span&gt;)
        .AddColumn(&lt;span style="color: blue;"&gt;new&lt;/span&gt; GridColumnModel(&lt;span style="color: #a31515;"&gt;"Id"&lt;/span&gt;).SetAsPrimaryKey())
        .AddColumn(&lt;span style="color: blue;"&gt;new&lt;/span&gt; GridColumnModel(&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;))
        .AddColumn(&lt;span style="color: blue;"&gt;new&lt;/span&gt; GridColumnModel(&lt;span style="color: #a31515;"&gt;"CompanyName"&lt;/span&gt;))
        .AddColumn(&lt;span style="color: blue;"&gt;new&lt;/span&gt; GridColumnModel(&lt;span style="color: #a31515;"&gt;"Price"&lt;/span&gt;));
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Index.cshtml:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;@using MVC.Controls.Grid
@using System.Web.Mvc
@using UI.Web.Models
@model UI.Web.Models.ProductsViewModel
           
@{
    ViewBag.Title = "Home Page";
}

&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;h2&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;@ViewBag.Message&lt;span style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515;"&gt;h2&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;

@Html.Grid(Model.Grid)
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;&lt;em&gt;And now getting the following error:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;
&lt;h2&gt;&lt;em&gt;Object reference not set to an instance of an object.&lt;/em&gt;&lt;/h2&gt;
&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"&gt;&lt;strong&gt;Description:&amp;nbsp;&lt;/strong&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Exception Details:&amp;nbsp;&lt;/strong&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Source Error:&lt;/strong&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt; &lt;/span&gt;&lt;/p&gt;
&lt;table width="100%" bgcolor="#ffffcc"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;
&lt;pre&gt;Line 10: &amp;lt;h2&amp;gt;@ViewBag.Message&amp;lt;/h2&amp;gt;
Line 11: 
&lt;span style="color: red;"&gt;Line 12: @Html.Grid(Model.Grid)
&lt;/span&gt;Line 13: 
Line 14: @*@Html.Raw(Html.Grid(new GridControl()&lt;/pre&gt;
&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"&gt; &lt;br /&gt;&lt;strong&gt;Source File:&amp;nbsp;&lt;/strong&gt;c:\Users\gmattox\Documents\Visual Studio 2010\Projects\jqGridSample\UI.Web\Views\Home\Index.cshtml&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Line:&amp;nbsp;&lt;/strong&gt;12&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>BillyM</author><pubDate>Thu, 14 Jun 2012 16:25:29 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120614042529P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I can't find a reference to SharedStrings.&lt;/p&gt;&lt;/div&gt;</description><author>BillyM</author><pubDate>Thu, 14 Jun 2012 15:52:59 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120614035259P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Here is how I do it.&lt;/p&gt;
&lt;p&gt;I define my Grid in my ViewModel. While this is mixing a bit the presentation and the data, I like&amp;nbsp;compiler&amp;nbsp;checking and intellisense. However you can cut and paste the new GridControl into the view if you&amp;nbsp;prefer.&lt;/p&gt;
&lt;p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;    &lt;span style="color: gray;"&gt;///&lt;/span&gt; &lt;span style="color: gray;"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;span style="color: green;"&gt;Members view model&amp;lt;/summary&amp;gt;&lt;/span&gt;
    &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; MembersViewModel
    {
        &lt;span style="color: blue;"&gt;public&lt;/span&gt; GridControl Grid = &lt;span style="color: blue;"&gt;new&lt;/span&gt; GridControl()
            .SetName(&lt;span style="color: #a31515;"&gt;"memberGrid"&lt;/span&gt;)
            .SetPageSize(40)            
            .SetWidth(&lt;span style="color: #a31515;"&gt;"761"&lt;/span&gt;)
            .SetAdditionalAttributes(&lt;span style="color: #a31515;"&gt;"shrinkToFit:false"&lt;/span&gt;)
            .SetListUrl(&lt;span style="color: #a31515;"&gt;"Members/List"&lt;/span&gt;)                        
            .SetOnSelectedRowEvent(&lt;span style="color: #a31515;"&gt;"window.location.href ='Members/Details/'+id;"&lt;/span&gt;)            
            .SetColumns&amp;lt;MemberModel&amp;gt;(
                cs =&amp;gt;
                    {
                        cs.Add(x =&amp;gt; x.MemberID).SetAsPrimaryKey().SetHidden(&lt;span style="color: blue;"&gt;true&lt;/span&gt;);
                        cs.Add(x =&amp;gt; x.SN).SetCaption(SharedStrings.SNText).SetWidth(&lt;span style="color: #a31515;"&gt;"80"&lt;/span&gt;);
                        cs.Add(x =&amp;gt; x.Rank).SetCaption(SharedStrings.RankText).SetWidth(&lt;span style="color: #a31515;"&gt;"50"&lt;/span&gt;);
                        cs.Add(x =&amp;gt; x.LastName).SetCaption(SharedStrings.LastNameText).SetWidth(&lt;span style="color: #a31515;"&gt;"100"&lt;/span&gt;);
                        cs.Add(x =&amp;gt; x.Initials).SetCaption(SharedStrings.InitialsText).SetWidth(&lt;span style="color: #a31515;"&gt;"60"&lt;/span&gt;);
                        cs.Add(x =&amp;gt; x.Supervisor).SetCaption(SharedStrings.SupervisorText).SetWidth(&lt;span style="color: #a31515;"&gt;"120"&lt;/span&gt;);
                        cs.Add(x =&amp;gt; x.Instrument).SetCaption(SharedStrings.PrimaryInstrumentText).SetWidth(&lt;span style="color: #a31515;"&gt;"130"&lt;/span&gt;);
                        cs.Add(x =&amp;gt; x.Effective).SetCaption(SharedStrings.EffectiveText).SetWidth(&lt;span style="color: #a31515;"&gt;"90"&lt;/span&gt;).SetIsDefaultSort();
                        cs.Add(x =&amp;gt; x.AdminStatus).SetCaption(SharedStrings.AdminStatusText).SetWidth(&lt;span style="color: #a31515;"&gt;"90"&lt;/span&gt;);
                    });
    }
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;After to use it in my view:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;@using MVC.Controls.Grid
@using System.Web.Mvc
@using Website.Models.ViewModels.MemberModels
@model MembersViewModel
@{
    ViewBag.Title = "Members List";
}
@section JavascriptContent {

}
&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;h2&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;Member's List&lt;span style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515;"&gt;h2&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;
@Html.Grid(Model.Grid)
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;&lt;/div&gt;</description><author>PhilmanCJ</author><pubDate>Wed, 13 Jun 2012 20:07:37 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120613080737P</guid></item><item><title>New Post: Razor support</title><link>http://mvcjquerycontrols.codeplex.com/discussions/254906</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I would like to see an MVC 3 sample as well. This is not working for me. I am getting the following error when rendering:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Compilation Error&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif"&gt;&lt;strong&gt;Description:&amp;nbsp;&lt;/strong&gt;An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and
 modify your source code appropriately.&amp;nbsp;&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Compiler Error Message:&amp;nbsp;&lt;/strong&gt;CS1502: The best overloaded method match for 'System.Web.Mvc.HtmlHelper.Raw(string)' has some invalid arguments&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Source Error:&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;table width="100%" bgcolor="#ffffcc"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;
&lt;pre&gt;Line 7:  &amp;lt;h2&amp;gt;@ViewBag.Message&amp;lt;/h2&amp;gt;
Line 8:  
&lt;span style="color:red"&gt;Line 9:  @Html.Raw(Html.Grid(new GridControl()
&lt;/span&gt;Line 10:               .SetName(&amp;quot;grid&amp;quot;)
Line 11:               .SetPageSize(10)&lt;/pre&gt;
&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif"&gt;&lt;br&gt;
&lt;strong&gt;Source File:&lt;/strong&gt;&amp;nbsp;c:\Users\gmattox\Documents\Visual Studio 2010\Projects\jqGridSample\UI.Web\Views\Home\Index.cshtml &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;Line:&lt;/strong&gt;&amp;nbsp;9&amp;nbsp;&lt;br&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is my code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;@using MVC.Controls.Grid

@{
    ViewBag.Title = &amp;quot;Home Page&amp;quot;;
}

&lt;span style="color:blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;h2&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;@ViewBag.Message&lt;span style="color:blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;h2&lt;/span&gt;&lt;span style="color:blue"&gt;&amp;gt;&lt;/span&gt;

@Html.Raw(Html.Grid(new GridControl()
              .SetName(&amp;quot;grid&amp;quot;)
              .SetPageSize(10)
              .SetIsAutoSize(true)
              .SetListUrl(&amp;quot;Home/List&amp;quot;)
              .SetHeight(&amp;quot;200&amp;quot;)
              .AddColumn(new GridColumnModel(&amp;quot;Id&amp;quot;).SetAsPrimaryKey())
              .AddColumn(new GridColumnModel(&amp;quot;Name&amp;quot;))
              .AddColumn(new GridColumnModel(&amp;quot;CompanyName&amp;quot;))
              .AddColumn(new GridColumnModel(&amp;quot;Price&amp;quot;))
         ))
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>BillyM</author><pubDate>Wed, 13 Jun 2012 18:00:12 GMT</pubDate><guid isPermaLink="false">New Post: Razor support 20120613060012P</guid></item><item><title>New Post: Dynamically add columns to GridColumnModelList</title><link>http://mvcjquerycontrols.codeplex.com/discussions/355852</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I need to store different configurations (profiles)&amp;nbsp;of a particular grid and load them at runtime according to the logged in user.&lt;/p&gt;
&lt;p&gt;I have a class ProfileColumn - a list of these are returned for the selected grid&amp;nbsp;from the db and I then need to assign them to the GridColumnModelList - something like:&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;div style="color:black; background-color:white"&gt;&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt;  &lt;span style="color:blue"&gt;class&lt;/span&gt; ProfileColumn 
{      
	&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;int&lt;/span&gt; Id { &lt;span style="color:blue"&gt;get&lt;/span&gt;; &lt;span style="color:blue"&gt;set&lt;/span&gt;; }
	&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;string&lt;/span&gt; Caption { &lt;span style="color:blue"&gt;get&lt;/span&gt;; &lt;span style="color:blue"&gt;set&lt;/span&gt;; }
	&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;string&lt;/span&gt; Name { &lt;span style="color:blue"&gt;get&lt;/span&gt;; &lt;span style="color:blue"&gt;set&lt;/span&gt;; }
	&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;bool&lt;/span&gt; IsEditable { &lt;span style="color:blue"&gt;get&lt;/span&gt;; &lt;span style="color:blue"&gt;set&lt;/span&gt;; }
	&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;bool&lt;/span&gt; IsHidden { &lt;span style="color:blue"&gt;get&lt;/span&gt;; &lt;span style="color:blue"&gt;set&lt;/span&gt;; }
}  

&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;class&lt;/span&gt; GridProfile&amp;lt;T&amp;gt; &lt;span style="color:blue"&gt;where&lt;/span&gt; T : &lt;span style="color:blue"&gt;class&lt;/span&gt;    
{
	&lt;span style="color:blue"&gt;public&lt;/span&gt; GridColumnModelList&amp;lt;T&amp;gt; Columns { &lt;span style="color:blue"&gt;get&lt;/span&gt;; &lt;span style="color:blue"&gt;private&lt;/span&gt; &lt;span style="color:blue"&gt;set&lt;/span&gt;; }
	&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;int&lt;/span&gt; Id { &lt;span style="color:blue"&gt;get&lt;/span&gt;; &lt;span style="color:blue"&gt;set&lt;/span&gt;; }
	&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;string&lt;/span&gt; Name { &lt;span style="color:blue"&gt;get&lt;/span&gt;; &lt;span style="color:blue"&gt;set&lt;/span&gt;; }
	&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;int&lt;/span&gt; GridId { &lt;span style="color:blue"&gt;get&lt;/span&gt;; &lt;span style="color:blue"&gt;set&lt;/span&gt;; }

	&lt;span style="color:blue"&gt;public&lt;/span&gt; GridProfile() {}

	&lt;span style="color:blue"&gt;public&lt;/span&gt; GridProfile(&lt;span style="color:blue"&gt;int&lt;/span&gt; profileId)
	{
		Id = profileId;
		Columns = GetColumns();
	}

	&lt;span style="color:blue"&gt;protected&lt;/span&gt; GridColumnModelList&amp;lt;T&amp;gt; GetColumns()
	{
		&lt;span style="color:blue"&gt;var&lt;/span&gt; columns = &lt;span style="color:blue"&gt;new&lt;/span&gt; GridColumnModelList&amp;lt;T&amp;gt;();
		List&amp;lt;ProfileColumn&amp;gt; cols = GetProfileColumns(profileId);
		&lt;span style="color:blue"&gt;foreach&lt;/span&gt; (&lt;span style="color:blue"&gt;var&lt;/span&gt; profileColumn &lt;span style="color:blue"&gt;in&lt;/span&gt; cols)
		{
			&lt;span style="color:blue"&gt;var&lt;/span&gt; column = profileColumn;
			columns.Add(x =&amp;gt; &lt;span style="color:blue"&gt;new&lt;/span&gt; GridColumnModel(column.Name)
				.SetHidden(column.IsHidden)
				.SetEditable(column.IsEditable)
				);
		}
		&lt;span style="color:blue"&gt;return&lt;/span&gt; columns;
	}
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br&gt;
The GridColumnModelList is populated with the correct amount of columns but the properties are never set.&lt;/p&gt;
&lt;p&gt;Is there a way to do this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>friedx</author><pubDate>Tue, 15 May 2012 15:02:33 GMT</pubDate><guid isPermaLink="false">New Post: Dynamically add columns to GridColumnModelList 20120515030233P</guid></item><item><title>New Post: Displaying dates with ToGridData</title><link>http://mvcjquerycontrols.codeplex.com/discussions/260950</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;The formatting does not work if the data source includes null dates. &amp;nbsp;The "Loading" text is displayed but the control fails to get any further. &amp;nbsp;A&amp;nbsp;JavaScript&amp;nbsp;exception is thrown - "&lt;span&gt;Uncaught TypeError: Cannot read property 'constructor' of null". &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I can make the problem go away by setting hidden for a primary key column to false, but it reappears when I show another page of results.&lt;/p&gt;&lt;/div&gt;</description><author>staplefordbill</author><pubDate>Fri, 23 Mar 2012 13:39:30 GMT</pubDate><guid isPermaLink="false">New Post: Displaying dates with ToGridData 20120323013930P</guid></item><item><title>New Post: How to change sortname property?</title><link>http://mvcjquerycontrols.codeplex.com/discussions/281598</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;How can I change de default value?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</description><author>pauljame</author><pubDate>Thu, 15 Mar 2012 12:14:24 GMT</pubDate><guid isPermaLink="false">New Post: How to change sortname property? 20120315121424P</guid></item><item><title>New Post: Grid error</title><link>http://mvcjquerycontrols.codeplex.com/discussions/347201</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I try to use &lt;span&gt;Grid Control on MVC 3 and Razor engine - error don't raise, but grid is not rendering. Here my code:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;@using MVC.Controls.Grid&lt;br /&gt; &lt;br /&gt; @Html.Grid(new GridControl().SetName("grid")&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .SetPageSize(10)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .SetIsAutoSize(true)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .SetHttpVerb(HttpVerbs.Get)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .SetDataSource(Model)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .SetColumns&amp;lt;ZxSpectrumPortal.Models.GameModel&amp;gt;(cs =&amp;gt;&lt;br /&gt; {&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; cs.Add(x =&amp;gt; x.GameName);&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; cs.Add(x =&amp;gt; x.GameYear).SetAsPrimaryKey();&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; cs.Add(x =&amp;gt; x.GameGenre);&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; cs.Add(x =&amp;gt; x.GameFile);&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Rendering part of control:&lt;/p&gt;
&lt;pre id="line87"&gt;&amp;lt;&lt;span&gt;table&lt;/span&gt;&lt;span&gt; id&lt;/span&gt;=&lt;span&gt;"grid"&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span&gt;table&lt;/span&gt;&amp;gt;
&amp;lt;&lt;span&gt;div&lt;/span&gt;&lt;span&gt; id&lt;/span&gt;=&lt;span&gt;"gridPager"&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span&gt;div&lt;/span&gt;&amp;gt;
&amp;lt;&lt;span&gt;script&lt;/span&gt;&lt;span&gt; language&lt;/span&gt;=&lt;span&gt;"javascript" &lt;/span&gt;&lt;span&gt;type&lt;/span&gt;=&lt;span&gt;"text/javascript"&lt;/span&gt;&amp;gt;grid_dataSource = [{"GameName":"weqe","GameYear":213123,"GameGenre":"asdasd","GameFile":"asdads"},{"GameName":"qwqwe","GameYear":21312,"GameGenre":"asAS","GameFile":"asdasd"},{"GameName":"gfdgdf","GameYear":32423,"GameGenre":"fsdfsd","GameFile":"werwerwer"},{"GameName":"newgame","GameYear":1111,"GameGenre":"1111","GameFile":"1111"}];&amp;lt;/&lt;span&gt;script&lt;/span&gt;&amp;gt;&amp;lt;&lt;span&gt;script&lt;/span&gt;&lt;span&gt; language&lt;/span&gt;=&lt;span&gt;"javascript"&lt;/span&gt;&amp;gt;$(document).ready(function() {
$("#grid").jqGrid({
url: "",
data: grid_dataSource,
datatype: "local",
colNames: ["GameName","GameYear","GameGenre","GameFile"],
colModel: [{ name: "GameName", index: "GameName", width: 50, align: "center", sortable: true, editable: true, hidden: false, edittype: 'text'}, 
{ name: "GameYear", index: "GameYear", width: 50, align: "center", sortable: true, key: true, editable: true, hidden: false, edittype: 'text'}, 
{ name: "GameGenre", index: "GameGenre", width: 50, align: "center", sortable: true, editable: true, hidden: false, edittype: 'text'}, 
{ name: "GameFile", index: "GameFile", width: 50, align: "center", sortable: true, editable: true, hidden: false, edittype: 'text'}],
rowNum: 10,
prmNames: {id: "GameYear"},
ngridComplete: function f(){updateButtonState($('#grid'));},
rowList: -1,
pager: $("#gridPager"),sortname: "GameName",
autowidth: true,
onSelectRow: function(id){updateButtonState($('#grid'));
if ($("#Id").length == 0) {return;}$("#Id")[0].value = $("#grid").getRowData(id).GameYear;},caption: ""});
$('#grid').navGrid('#gridPager',{add: false, edit:false, del: false, search: true, view: false, refresh: true},{afterSubmit:handleMvcResponse}, {afterSubmit:handleMvcResponse}, {afterSubmit:handleMvcResponse}, {multipleSearch:true});
});
&lt;/pre&gt;
&lt;pre id="line122"&gt;&amp;lt;/&lt;span&gt;script&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;Can anyone help??&lt;/p&gt;&lt;/div&gt;</description><author>AlexeyZah</author><pubDate>Sun, 04 Mar 2012 02:23:50 GMT</pubDate><guid isPermaLink="false">New Post: Grid error 20120304022350A</guid></item></channel></rss>