Skip to content

Instantly share code, notes, and snippets.

@reharik
Created October 25, 2012 17:27
Show Gist options
  • Select an option

  • Save reharik/3954165 to your computer and use it in GitHub Desktop.

Select an option

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