首页 > 解决方案 > 如何将选择框放在 jquery 数据表内的列中?

问题描述

在下面的数据表中,我想将选择框放入“Durum”列。我该怎么做以及如何获得我选择的选项值?我想在我的数据表中使用一个选择框。谢谢你的帮助。

$(document).ready(function() {
  $("#FirmaTable").show();
  table = $("#FirmaTable").DataTable({
    dom: 'Bfrtip',
    buttons: ['excel', 'print'],
    lengthChange: false,
    searching: false,
    paging: false,

    "ajax": {
      "url": "/Raporlama/DataVeri",
      "type": "GET",
      "datatype": "json"

    },

    "columns": [

      {
        "data": "Kullanici"
      },
      {
        "data": "VerildigiTarih"
      },
      {
        "data": "EkBilgi"
      },
      {
        "data": "KargoBilgisi"
      },
      {
        "data": "Firma"
      },
      {
        "data": "Adres"
      },
      {
        "data": "AdresOpsiyonlu"
      },
      {
        "data": "TeslimEdilen"
      },
      {
        "data": "Durum"
      }

    ]
  });

});
<table id="FirmaTable" class="display compact" style="display:none">
  <thead>
    <tr>
      <th>Kullanici</th>
      <th>Verildigi Tarih</th>
      <th>Ek Bilgi</th>
      <th>Kargo Bilgisi</th>
      <th>Firma</th>
      <th>Adres</th>
      <th>Adres Opsiyonlu</th>
      <th>Teslim Edilecek Kişi</th>
      <th>Durum</th>
    </tr>
  </thead>
</table>

标签: jqueryhtmlasp.net-mvcdatatables

解决方案


推荐阅读