There is my table skeleton:
<thead>
<tr>
<th data-field="userId">User Id</th>
<th data-field="name">Name</th>
<th data-field="surname">Surname</th>
<th data-field="rate">Rate Per Hour</th>
<th data-field="accName">Account Name</th>
<th data-field="fixCosts">Fix Costs</th>
<th id="tableOption">
Action
</th>
</tr>
</thead>
I am filling the tables with data returned from JSON
$.getJSON('/ManageUsers/GetActiveUsers/', function (data) {
$('#usersTable').bootstrapTable({
data: data
});
The last column is called Action. I am not giving data to this column. I would like to have two glyphicons there for every row. How can I do that ?
--EDIT--
public JsonResult GetActiveUsers()
{
List<UserOnTheList> users = _userService.GetActiveUsers();
var rows = users.Select(s => new
{
userId = s.UserId,
name = s.Name,
surname = s.Surname,
rate = s.RatePerHour,
accName = s.AccountName,
fixCosts = s.FixCost
})
.ToArray();
return Json(rows, JsonRequestBehavior.AllowGet);
}
All I want is that every row will have two glyphicons at the tableOption
column