From 1e50514513bebd60a9928bf5843f208201fbdaba Mon Sep 17 00:00:00 2001 From: ja Date: Mon, 17 Jan 2022 16:56:17 +0100 Subject: [PATCH] =?UTF-8?q?formattedlist=20implementiert=20zu=20besser=20r?= =?UTF-8?q?egulierbarer=20=C3=9Cbersicht=20der=20JSON=20Tabellenr=C3=BCckg?= =?UTF-8?q?abe.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Customers/LKWs.aspx | 78 +- Customers/LKWs.aspx.vb | 40 + .../CodeAnalysisLog.xml | 2888 ++++++++--------- 3 files changed, 1520 insertions(+), 1486 deletions(-) diff --git a/Customers/LKWs.aspx b/Customers/LKWs.aspx index 92b816c..5f96bc9 100644 --- a/Customers/LKWs.aspx +++ b/Customers/LKWs.aspx @@ -372,9 +372,23 @@ ]); }); - $('#<%=tablemain.ClientID%>').dataTable({ - 'aaData': dtData, - "bJQueryUI": true + $("#<%=tablemain.ClientID%>").dataTable({ + "bJQueryUI": true, + "sPaginationType": "full_numbers", + "bServerSide": true, + "sAjaxSource": "LKWs.aspx/filltable2", + "fnServerData": function (sSource, aoData, fnCallback) { + $.ajax({ + "type": "POST", + "dataType": 'json', + "contentType": "application/json; charset=utf-8", + "url": sSource, + "data": "{'sEcho': '" + aoData[0].value + "'}", + "success": function (msg) { + fnCallback(msg.d); + } + }); + } }); } function renderTable_M(result) { @@ -390,49 +404,29 @@ ]); }); - $('#<%=tablemain_m.ClientID%>').dataTable({ - 'aaData': dtData, - "bJQueryUI": true + $("#<%=tablemain_m.ClientID%>").dataTable({ + "bJQueryUI": true, + "sPaginationType": "full_numbers", + "bServerSide": true, + "sAjaxSource": "LKWs.aspx/filltable2_M", + "fnServerData": function (sSource, aoData, fnCallback) { + $.ajax({ + "type": "POST", + "dataType": 'json', + "contentType": "application/json; charset=utf-8", + "url": sSource, + "data": "{'sEcho': '" + aoData[0].value + "'}", + "success": function (msg) { + fnCallback(msg.d); + } + }); + } }); }