1.10.4 Sorting issue

1.10.4 Sorting issue

usr_mi912usr_mi912 Posts: 3Questions: 1Answers: 0

I replaced 1.9.4 with 1.10.4, made few changes such as replaced fnRender with mRender. The issue I have is the data disapper when I click the header, any thoughts???

Answers

  • allanallan Posts: 63,677Questions: 1Answers: 10,497 Site admin

    As noted in the forum rules, please link to a test page so we can see and debug the issue.

    Allan

  • usr_mi912usr_mi912 Posts: 3Questions: 1Answers: 0

    Allan, Thanks for your quick response. I am working on test page link, will send you as soon as its ready. Meanwhile, I have attached the code below. Datatable is populating from JSON object, datatable loads fine with data, but when I click any header the data disappear in 1.10.4. I dont see this issue in 1.9.4. Can you please take a look at the code?
    /**
    *
    * @return
    */
    function drawResearchOpTable(){
    opinionList;
    var gppData = [];
    var iDataRow = 0;
    $.each(opinionList, function(i, obj) {
    gppData.push([obj.companyName,
    obj.symbol,
    obj.opinionRating,
    obj.suitability,
    obj.sector,
    obj.subsector,
    obj.vendorRating,
    obj.updateDate,
    obj.yield,
    obj.divRating,
    ]);
    });

        var oTable = $('#sortFilterTable').dataTable( {
                "aaData": gppData,
                "iDataRow": iDataRow,               
                "aoColumns": [  { "sTitle":"Company Name","bUseRendered":false,"sType":"string" 
    
                                },      
                                { "sTitle": "Symbol","bUseRendered":false,"sType":"string"
    
                                },                              
                                { "sTitle": "Opinion","bUseRendered":false,"sType":"string"
                                },
                                { "sTitle": "Suitability","bUseRendered":false,"sType":"string"
    
                                },
                                { "sTitle": "Sector","bUseRendered":false,"sType":"string"
    
                                },
                                { "sTitle": "Sub-sector","bUseRendered":false,"sType":"string"
    
                                },
                                { "sTitle": "Moriningstar Opinion","bUseRendered":false,"sType":"string" 
                                },
    
                                { "sTitle": "Published","bUseRendered":false,"sType":"string"
    
                                },
                                { "sTitle": "Yield","bUseRendered":false,"sType":"string"
    
                                },
                                { "sTitle": "Dividend Rating","bUseRendered":false,"sType":"string"
    
                                },
                        ],                  
                   "aaSorting": [[3, "asc" ]], //default column sort 
                   "bLengthChange": false,                 
                   "bPaginate" : false,                
    

    } );
    }

  • allanallan Posts: 63,677Questions: 1Answers: 10,497 Site admin

    I don't see any immediate problems. We would need a test page showing the issue I think.

    Allan

  • usr_mi912usr_mi912 Posts: 3Questions: 1Answers: 0

    Allan,

    I have added few lines, magically it started working. Thanks much Allan.
    searching: false,
    ordering: true,
    paging: false,
    processing: true,
    deferRender: true,

This discussion has been closed.