Uncaught TypeError: Cannot read property 'aDataSort' of undefined
Uncaught TypeError: Cannot read property 'aDataSort' of undefined

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
This discussion has been closed.
Answers
Happy to take a look at a test case showing the issue.
Allan
this is my view page
<?php $this->widget('zii.widgets.CListView', array( 'dataProvider'=>$dataProvider, 'itemView' => '_newview', 'template' => '<?php
<?php > ?>Yii::app()->clientScript->registerScript('myjavascript', '
$(document).ready(function(){
$(".myTable").dataTable( {
//"pageLength": 5
} );});
');
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
Sorry I can't send you..I'm working on Localhost
I'm sorry I can't offer any help then as I'm unable to debug the application.
Allan