Jquery datatable 1.10.16 not binding Json Response to table

205
April 19, 2018, at 6:42 PM

This is my response from action method:

{
    "draw": 1, "recordsTotal": 2, "recordsFiltered": 2, "data": [
        { "ISIN": "IMF284L016", "SubSchemeName": "Geliance jocused Marge Map  Plan-Growth Option", "TotalAmountInvested": 400.0000, "CurrentValue": 507.402400, "Client": "23", "ClientName": "Lweta Kain      " },
        { "ISIN": "IKF24K01o", "SubSchemeName": "", "TotalAmountInvested": 0.0000, "CurrentValue": 0.000000, "Client": "23", "ClientName": "Uweta Kain      " }
    ]
}

Below is my code

$('#orderBookTable').DataTable({
            "pageLength": 50,
            "bProcessing": true,
            "bServerSide": true,
            "ajax": {
                "url": "/Fund/Get",
                "type": "POST",
                "datatype": "Json",
                "data": function (d) {
                    d.clientCode = $("#sltClientName").val();
                },
                "columns": [
                    { "data": "SchemeName" },
                    { "data": "Client" },
                    { "data": "Invested" },
                    { "data": "CurrentValue" },
                    { "data": "CurrentValue" },
                ],
                "fnCreatedRow": function (d) {
                    debugger;
                }
            }
        });

please have look in to it. My server side code returning JsonResult using Json method

Rent Charter Buses Company
READ ALSO
Fill all empty inputs with value after clicking submit

Fill all empty inputs with value after clicking submit

I have a form with different input types (text, radio buttons, select, text areas)Form is table with button to add additional rows,

236
Check unique $(this) elements in array with JS/jquery

Check unique $(this) elements in array with JS/jquery

I am making use of Gridster widgets on webpageEach widget is having a button on it which changes the color to red of widget after that is clicked

174
Aligning dynamically created buttons vertically

Aligning dynamically created buttons vertically

So I'm trying to make a page for stuff, and I'm at a decent stageI hit a roadblock on, of all things, trying to vertically align buttons I create using javascript in the document

159
How to compress pdf file when uploading pdf file using codeigniter

How to compress pdf file when uploading pdf file using codeigniter

I'm trying to compress the pdf file when uploading file to databaseUsing my code image compression is possible, but I'm not able to compress pdf file

201