Skip to content

Instantly share code, notes, and snippets.

@reharik
Created October 25, 2012 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reharik/3954165 to your computer and use it in GitHub Desktop.
Save reharik/3954165 to your computer and use it in GitHub Desktop.
JQGrid in html
@(Html.Grid("Basic")
.SetCaption("Basic Grid")
.AddColumn(new Column("CustomerId")
.SetLabel("Id"))
.AddColumn(new Column("Name"))
.AddColumn(new Column("Company"))
.AddColumn(new Column("EmailAddress"))
.AddColumn(new Column("Last Modified"))
.AddColumn(new Column("Telephone"))
.SetUrl(Url.Action("GridDataBasic"))
.SetAutoWidth(true)
.SetRowNum(10)
.SetRowList(new[]{10,15,20,50})
.SetViewRecords(true)
.SetPager("pager"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment