Ok, I’ve gone through the class reference and got almost EVERYTHING turned off… (Currently the code below has some place holder stuff in it)
$this->widget('application.extensions.MyGridView', array(
'dataProvider' => $dataProvider,
'enablePagination' => false,
'cssFile' => false,
'hideHeader' => false,
'ajaxUrl' => false,
'selectableRows' => 0,
'skin' => false,
'htmlOptions' => array(
'url' => $this->getRoute()
),
'enableSorting' => false,
'template' => '{items}',
'columns' => array(
array(
'header' => '',
'class' => 'CCheckBoxColumn',
'checked' => '$data["checked"]',
'value' => '$data["id"]',
'name' => uniqid(),
'id' => uniqid()
),
'number:text:Number',
'type:text:Type',
'cash_date:date:Cash Date',
'cash_amount:money:Cash Amount',
'balance:money:Balance'
),
));
I’m still getting
<script type="text/javascript" src="/test/assets/bb04beea/gridview/jquery.yiigridview.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
jQuery(function($) {
jQuery('body').undelegate('#yt0','click').delegate('#yt0','click',function(){jQuery.ajax({'url':'/test/index.php/site/forecastsetup','cache':false,'success':function(html){jQuery("#holder").html(html)}});return false;});
jQuery('body').undelegate('#yt1','click').delegate('#yt1','click',function(){jQuery.ajax({'url':'/test/index.php/site/viewforecast','cache':false,'success':function(html){jQuery("#holder").html(html)}});return false;});
jQuery('#yw0').yiiGridView({'ajaxUpdate':['yw0'],'ajaxVar':'ajax','pagerClass':'pager','loadingClass':'grid-view-loading','filterClass':'filters','tableClass':'items','selectableRows':0,'url':false});
});
/*]]>*/
</script>
Added at the bottom of my page. Anyone happen to know what I need to do to disable all the javascript/AJAX features that it loads?
The purpose of all this is that I’m using jquery dataTables instead and just for the sake of neat code, trying to use GridView to spit out just a normal static HTML table. haha.