表格此鏈接:自舉表服務器側濾波不工作(數據濾波器控制= 「選擇」)
Bootstrap table filtering not working
我的代碼:
<table
data-url="<?php echo Yii::app()->createUrl('sj/getdata_list'); ?>"
data-pagination="true"
id="tables"
class="table table-striped table-hover "
data-toggle="table"
data-side-pagination="server"
data-page-list="[5, 10, 20, 50, 100, 200]"
data-search="true"
data-show-pagination-switch="showPaginationSwitch"
data-filters="true"
data-filter-control="true"
data-sort-order="desc"
data-selectable-rows="true"
data-item-id="id"
data-show-columns="true"
data-selectable-rows-action="load_panels"
data-minimum-count-columns="1"
data-show-refresh="true"
data-search-align="left"
data-toolbar="#Customer-custom-toolbar"
data-show-filter="true"
data-striped="true"
data-sort-name="id"
data-show-toggle="true"
data-detail-view="true"
data-detail-formatter="detailFormatter"
data-id-field="no_sj"
data-editable-emptytext="-"
data-editable-url="<?php echo Yii::app()->createUrl('sj/edit_sj');?>"
data-filter-control="true"
>
<caption style="border: inherit; background-color: lightgrey;">
<span class="align-left"><strong>Tabel Pembelian yang belum diterima</strong></span>
</caption>
<thead>
<tr>
<th data-field="no_sj" data-sortable="true" data-filter-control="input">No Surat Jalan</th>
<th data-field="tgl_sj" data-sortable="true" data-filter-control="select">Tgl Surat Jalan</th>
<th data-field="cabang" data-sortable="true" data-filter-control="input">Cabang</th>
<th data-field="qnty" data-sortable="true">Quantity</th>
<th data-field="harga" data-sortable="true" class="hidden">Harga</th>
<th data-field="jt" data-sortable="true">JT</th>
<th data-field="stat_terima" data-sortable="true" data-filter-control="select" class='set_edit_status' data-editable-title='Status :' data-pk='no_sj' data-editable="true">Status</th>
<th data-field="tgl_terima" data-sortable="true" data-filter-control="datepicker" class='set_edit_tanggal' data-editable-type="date" data-editable-viewformat='dd-mm-yyyy' data-editable-clear='false' data-editable-format='dd-mm-yyyy' data-editable-datepicker='{weekStart:1}' data-pk='no_sj' data-editable="true" >Tanggal</th>
<th data-field="ket_terima" data-sortable="true" class="hidden">Ket</th>
</tr>
</thead>
</table>
在過濾器中的結果「選擇「沒有工作。 它只是顯示選擇顯示,如果在下一首/上頁的過濾器中選擇並沒有出現在選項選擇過濾器的頁面。
什麼我錯過?
CZ卡住我」用另一種方式M,'數據工具欄=「#客戶爲定製工具欄」'我用用這個..這個問題仍然是開放,如果有人有答案,也許這會提高我的/別人的代碼自定義篩選.. –