Uncaught TypeError: Cannot read property 'aDataSort' of undefined

Uncaught TypeError: Cannot read property 'aDataSort' of undefined

rajisharajisha Posts: 3Questions: 1Answers: 0

I'm using yii framework .I used datatable in yii ,get an error "Uncaught TypeError: Cannot read property 'aDataSort' of undefined",when empty table .Data table used in yii clist view

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 64,399Questions: 1Answers: 10,634 Site admin
    Answer ✓

    Happy to take a look at a test case showing the issue.

    Allan

  • rajisharajisha Posts: 3Questions: 1Answers: 0

    this is my view page

    <?php $this->widget('zii.widgets.CListView', array( 'dataProvider'=>$dataProvider, 'itemView' => '_newview', 'template' => '
    {summary}{sorter}
    {items}
    ', )); ?>

    <?php
    Yii::app()->clientScript->registerScript('myjavascript', '
    $(document).ready(function(){
    $(".myTable").dataTable( {
    //"pageLength": 5
    } );});
    ');

    <?php > ?>
  • allanallan Posts: 64,399Questions: 1Answers: 10,634 Site admin

    Can you please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Allan

  • rajisharajisha Posts: 3Questions: 1Answers: 0

    Sorry I can't send you..I'm working on Localhost

  • allanallan Posts: 64,399Questions: 1Answers: 10,634 Site admin

    I'm sorry I can't offer any help then as I'm unable to debug the application.

    Allan

This discussion has been closed.