0
私はサーバー側のページ設定を以下のように定義していますが、うまくいきますが、フィールドの長さが長すぎるため、クリックしたときに詳細ボタンを設定する必要があります。解説のデータが表示されます。レンダリングの前にjquery dtレスポンスを編集します
私はsuccess:function(aaData){..}
をajaxに追加しようとしましたが、データテーブルには何の提案もありませんでしたか?そして私はここ
$(document).ready(function() {
var table = $('#dtBooks').DataTable({
"processing": true,
"serverSide": true,
"filter": false,
"orderMulti": false,
"ajax": {
"url": "@Url.Action("GetBooks", "Home")",
"type": "POST",
"datatype": "json"
},
"columns": [
{ "data": "Title", "name": "Title", "autoWidth": true },
{ "data": "Publisher", "name": "Publisher", "autoWidth": true },
{ "data": "Description", "name": "Description", "autoWidth": true },
{ "data": "Authors", "name": "Authors", "autoWidth": true },
]
});
});
..私はここにこれを処理したいので、私は、ブラウザ内のデータを持っているコントローラでモデルカントー編集したくないデータテーブルには、このモデルのモデルdefinationのcontorller応答リストです。
public class Book
{
public string Title { get; set; }
public string Publisher { get; set; }
public string Description { get; set; }
public string[] Authors { get; set; }
}
.. – TyForHelpDude