Click here to Skip to main content
14,668,312 members
Home » Discussions » Web Development
   

Web Development

 
QuestionWhen trying to reload DataTable I get error:Uncaught TypeError: Cannot set property 'data' of null Pin
KGr289-Jul-19 4:49
MemberKGr289-Jul-19 4:49 
AnswerRe: When trying to reload DataTable I get error:Uncaught TypeError: Cannot set property 'data' of null Pin
Afzaal Ahmad Zeeshan30-Jul-19 8:59
mvaAfzaal Ahmad Zeeshan30-Jul-19 8:59 
QuestionPerforming Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 7:54
MemberKGr288-Jul-19 7:54 
AnswerRe: Performing Ajax on dataTable where checkbox is clicked Pin
ZurdoDev8-Jul-19 8:06
mveZurdoDev8-Jul-19 8:06 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 8:09
MemberKGr288-Jul-19 8:09 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 8:58
MemberKGr288-Jul-19 8:58 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
ZurdoDev8-Jul-19 9:07
mveZurdoDev8-Jul-19 9:07 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 9:28
MemberKGr288-Jul-19 9:28 
So basically this, This is in my .js file I would link this to my view in mvc:
var table = $('#DashboardTable').DataTable;
table.ajax.reload();


$(document).ready(function () {
    $("#DashboardTable").DataTable({

        "processing": true, // for show progress bar
        "serverSide": true, // for process server side
        "filter": true, // this is for disable filter (search box)
        "orderMulti": false, // for disable multiple column at once
        "pageLength": 5,

        "ajax": {
            "url": "/Chargeback/Index",
            "type": "GET",
            "datatype": "json"
        },

        "columnDefs":
        [{
            "targets": [0],
            "visible": false,
            "searchable": false
        },
        {
            "targets": [7],
            "searchable": false,
            "orderable": false
        },
        {
            "targets": [8],
            "searchable": false,
            "orderable": false
        },
        {
            "targets": [9],
            "searchable": false,
            "orderable": false
        }],

        "columns": [
        { "data": "ChargebackCode" },
        { "data": "StatusName" },
        { "data": "BusinessUnitName" },
        { "data": "InvoiceCode" },
        { "data": "OrderCode" },
        { "data": "PickTicketCode" },
        { "data": "CustomerPo" },
        { "data": "AssignedDepartment" },
        { "data": "DivisionName" },
        { "data": "Customer" },
        { "data": "WarehouseName" },
        { "data": "Coordinator" },
        { "data": "ChargebackDate" },
        { "data": "ModDate" },
        { "data": "ChargebackDeadline" },
        { "data": "ChargebackCloseDate" },
        { "data": " DaysOpen" },
        { "data": "ChargebackAmount" },
        { "data": "ChargebackBalance" },
        { "data": "FaultName" },
        { "data": "ResponsibleName" }
        ]

    });

});


modified 8-Jul-19 15:39pm.

AnswerRe: Performing Ajax on dataTable where checkbox is clicked Pin
ZurdoDev8-Jul-19 9:40
mveZurdoDev8-Jul-19 9:40 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 9:48
MemberKGr288-Jul-19 9:48 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
ZurdoDev8-Jul-19 9:50
mveZurdoDev8-Jul-19 9:50 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 10:34
MemberKGr288-Jul-19 10:34 
QuestionDeply Web API to IIS Pin
Kevin Marois2-Jul-19 4:22
professionalKevin Marois2-Jul-19 4:22 
AnswerRe: Deply Web API to IIS Pin
F-ES Sitecore2-Jul-19 4:52
mveF-ES Sitecore2-Jul-19 4:52 
GeneralRe: Deply Web API to IIS Pin
Kevin Marois2-Jul-19 5:04
professionalKevin Marois2-Jul-19 5:04 
AnswerRe: Deply Web API to IIS Pin
ZurdoDev2-Jul-19 10:28
mveZurdoDev2-Jul-19 10:28 
GeneralRe: Deply Web API to IIS Pin
Kevin Marois2-Jul-19 10:39
professionalKevin Marois2-Jul-19 10:39 
QuestionHelper Methods MVC Pin
KGr2825-Jun-19 7:52
MemberKGr2825-Jun-19 7:52 
GeneralRe: Helper Methods MVC Pin
Richard Deeming25-Jun-19 9:00
mveRichard Deeming25-Jun-19 9:00 
GeneralRe: Helper Methods MVC Pin
KGr2825-Jun-19 9:21
MemberKGr2825-Jun-19 9:21 
GeneralRe: Helper Methods MVC Pin
Richard Deeming25-Jun-19 9:35
mveRichard Deeming25-Jun-19 9:35 
GeneralRe: Helper Methods MVC Pin
KGr2825-Jun-19 9:58
MemberKGr2825-Jun-19 9:58 
GeneralRe: Helper Methods MVC Pin
KGr2825-Jun-19 10:37
MemberKGr2825-Jun-19 10:37 
QuestionMSBUILD warning MSB3245 and MSB3243 Pin
#realJSOP25-Jun-19 5:33
mva#realJSOP25-Jun-19 5:33 
QuestionTest Driven Dev in MVC5 Pin
#realJSOP24-Jun-19 4:37
mva#realJSOP24-Jun-19 4:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.