Table sorting in twitter bootstrap 3.1.1 [closed]

时间秒杀一切 提交于 2019-12-06 20:30:40

问题


 <div class="table-responsive">
    <table class="table table-hover gradienttable">
        <thead>
            <tr>
                <th>Id</th>
                <th>State</th>
                <th>Sub State</th>
                <th>Title</th>
                <th>Severity</th>                   
                <th>InstanceNum</th>
                <th>CreatedBy</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var incident in Model.GetActiveIncidents())
            {
                <tr>
                    <td><a target="_blank" href=@incident.Url>@incident.Id</a></td>
                    <td>@incident.State</td>
                    <td>@incident.SubState</td>
                    <td>@incident.Title</td>
                    <td>@incident.Severity</td>
                    <td>@incident.InstanceNum</td>
                    <td>@incident.CreatedBy</td>
                </tr>
            }
        </tbody>
    </table>   
</div> 

The code above is the way i populate data into my table

How can i make this table sort enabled for twitter bootstrap 3.1.1 version. I referred one of the question on stackoverflow and tried using it by it didnt work How can I make table being capable of sorting with twitter bootstrap

Any suggestions please?

来源:https://stackoverflow.com/questions/24767748/table-sorting-in-twitter-bootstrap-3-1-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!