Bootgrid select row when checkbox is clicked

冷暖自知 提交于 2019-12-24 00:38:47

问题


I am using Bootgrid to display data in tables: http://www.jquery-bootgrid.com/

When I set the rowSelect to true, I can't select the row when I check the checkbox:

I have created a JSFiddle: https://jsfiddle.net/n2jqjtep/1/

<table id="employeeList" class="table table-bordered">
  <thead>
    <tr>
      <th data-column-id="iEmployeeId" data-type="numeric" data-visible="false" data-identifier="true">Id</th>
      <th data-column-id="sName">Name</th>
      <th data-column-id="sAddress">Address</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>1</td>
      <td>dsa</td>
      <td>asd</td>
    </tr>
    <tr>
      <td>2</td>
      <td>sss</td>
      <td>assd</td>
    </tr>
  </tbody>
</table>

And this is the JavaScript:

    var dt = $('#employeeList').bootgrid({
      selection: true,
      rowSelect: true,
      converters: {},
    });

I want to select the Row when the checkbox is checked.

来源:https://stackoverflow.com/questions/34329023/bootgrid-select-row-when-checkbox-is-clicked

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