bootstrap-table.mvc

A fluent Html helper for the popular bootstrap-table plug-in. Source and examples available at https://github.com/simonray/bootstrap-table.mvc For bootstrap-table plug-in documentation visit https://github.com/wenzhixin/bootstrap-table


Keywords
list, bootstrap, asp.net, row, grid, fluent, mvc, html, table, helper
License
MIT
Install
Install-Package bootstrap-table.mvc -Version 1.1.1

Documentation

bootstrap-table.mvc (C# / MVC) nuget package

A fluent Html helper for the popular bootstrap-table plug-in.

To install, run the following command in the Package Manager Console.

Install-Package bootstrap-table.mvc

Configuration

Add the following css

<link href="~/Content/bootstrap-table.min.css" rel="stylesheet" />

and script to your project

<script src="~/Scripts/bootstrap-table/bootstrap-table.min.js"></script>

Usage

You're now ready to start using bootstrap-table.

@(Html.BootstrapTable<Person>(Url.Action("GetPeoplePaged"), TablePaginationOption.server)
    .Apply(TableOption.striped)
    .Apply(m => m.Id, ColumnOption.align_center))

Alt text

Examples

Download

Change Log

1.1.1 (22-02-15)

  • Set column title as split camel-case.
  • Support for ordered model properties [Display(Order=#)].

1.1.0 (19-02-15)

  • Simplify interface and options.
  • Removed PagingUrl -> constructor (TablePaginationOption.###).
  • Upgrade to latest bootstrap-table.

1.0.1 (22-01-15)

1.0.0 (16-01-15)

  • Initial Release.

Acknowledgements