Jquery bootgrid 如何在jQuery引导网格中默认选择少数列

Jquery bootgrid 如何在jQuery引导网格中默认选择少数列,jquery-bootgrid,Jquery Bootgrid,我正在尝试使用 从SQL数据库加载表时,所有列都会显示,因为所有复选框都标记在下拉菜单中(图像已附加),我希望defult只显示选定的列,并且用户可以在复选框中标记“实列”字段以使其可见 身份证件 O_Refferer 自己的身份 率 文本详细信息 评论 命令 找到了解决方案。只需将(data visible=“false”)(不带括号)添加到表中相应的第行 <table id="employee_grid" class="table table-condensed table-hov

我正在尝试使用

从SQL数据库加载表时,所有列都会显示,因为所有复选框都标记在下拉菜单中(图像已附加),我希望defult只显示选定的列,并且用户可以在复选框中标记“实列”字段以使其可见


身份证件
O_Refferer
自己的身份
率
文本详细信息
评论
命令

找到了解决方案。只需将(data visible=“false”)(不带括号)添加到表中相应的第行

<table id="employee_grid" class="table table-condensed table-hover table-striped" width="70%" cellspacing="0" data-toggle="bootgrid">
    <thead>
        <tr> 
           <th data-column-id="own_referrer" data-visible="false">O_Refferer</th> 
           <th data-column-id="own_referrer">O_Refferer</th>
           <th data-column-id="own_aact_status">own_aact_status</th>
           <th data-column-id="rate">rate</th>
           <th data-column-id="text_Details">text_Details</th>
           <th data-column-id="remarks">remarks</th>
           <th data-column-id="commands" data-formatter="commands" data-sortable="false">Commands</th>
        </tr>
    </thead>
</table>

O_Refferer
O_Refferer
自己的身份
率
文本详细信息
评论
命令

找到了解决方案。只需将(data visible=“false”)(不带括号)添加到表中相应的第行

<table id="employee_grid" class="table table-condensed table-hover table-striped" width="70%" cellspacing="0" data-toggle="bootgrid">
    <thead>
        <tr> 
           <th data-column-id="own_referrer" data-visible="false">O_Refferer</th> 
           <th data-column-id="own_referrer">O_Refferer</th>
           <th data-column-id="own_aact_status">own_aact_status</th>
           <th data-column-id="rate">rate</th>
           <th data-column-id="text_Details">text_Details</th>
           <th data-column-id="remarks">remarks</th>
           <th data-column-id="commands" data-formatter="commands" data-sortable="false">Commands</th>
        </tr>
    </thead>
</table>

O_Refferer
O_Refferer
自己的身份
率
文本详细信息
评论
命令

我正在使用此代码,请按“开始此示例”按钮,网格将可见。请在问题中写入代码,以便更清楚。我收回选票。我写这篇文章是为了帮助你更清楚。我正在使用这段代码。请按“开始此示例”按钮,网格将可见。在问题中写下你的代码,这样会更清楚。我收回选票。我写这篇文章是为了让你更清楚。