How to inspect data element received from Controller?

How to inspect data element received from Controller?

abhilashamishra17abhilashamishra17 Posts: 13Questions: 3Answers: 0
edited August 2015 in Free community support

Hi, How to inspect the data element received from C# Controller.?

function populatefizzbuzzlist(data) {
        $("#results tbody").html("");
        debugger;
        var otable = $("#results").dataTable({
            "aaData": data,
            "aaSorting" :  [[0, "asc" ]],
            "bJQueryUI": true,
            "bFilter":              true,
            "bStateSave":              true,
            "bDestroy":              true,
            "bDeferRender":              true,
            "bProcessing":              true,
            "bPaginate": true,
            "bLengthChange": false,
            "iDisplayLength": 20,
            "bAutoWidth": true,
            "sScrollY": "500px",
            "aoColumns": [
            {
                "bSortable": true,
                "sClass": "left",
                fnrender: function (obj) {
                    return obj.aData.Number;
                }
             },
             {
                   "bSortable": true, "sClass": "left", fnRender: function (obj) {

                       var cellValue = obj.aData.Status;
                       if (cellValue == "fizz") {
                           return "<span class=\"greenText\">" + cellValue + "</span>";
                       }
                       else if (cellValue == "buzz") {
                           return "<span class=\"blueText\">" + cellValue + "</span>";
                       }
                       else {
                           return cellValue;
                       }

                       return obj.aData.Status;
                   }
             }
            ]
        });
        $("#results").css('width', "100%");
This discussion has been closed.