mardi 24 janvier 2017

how to use data-radio = "true" and data-checkbox="true" in the same bootstrap table

how to use data-radio = "true" and data-checkbox="true" in the same bootstrap table with Json data ?

example:

<table id="eventsTable"
       data-toggle="table"
       data-url=@Url.Action("GetUser", "User")
       data-side-pagination="server"
       data-pagination-next-text="›"
       data-pagination-pre-text="‹"
       data-toolbar="#toolbar">
    <thead>
        <tr>
            <th data-field="Director" data-radio="true">Director</th>
            <th data-field="Name" data-sortable="true">Name</th>
            <th data-field="Email" data-sortable="true">Email</th>
            <th data-field="Responsible" data-checkbox="true">Responsible</th>
        </tr>
    </thead>
</table>

The problem in this example if I check data-radio, all data-checkbox checked will be unchecked and if I check data-checkbox the data-radio will be unchecked.




Aucun commentaire:

Enregistrer un commentaire