public function renderMenuItem()
 {
     $menuItem = parent::renderMenuItem();
     $menuItem['submenuOptions'] = array('class' => 'button-actions open-on-left');
     return $menuItem;
 }
 public function renderMenuItem()
 {
     Yii::app()->clientScript->registerScript('exportToCsv', "\n                        \$('#exportToCsv').unbind('click.action');\n                        \$('#exportToCsv').bind('click.action', function()\n                            {\n                                var options =\n                                {\n                                    url     : \$.fn.yiiGridView.getUrl('report-results-grid-view'),\n                                    baseUrl : '" . Yii::app()->createUrl($this->moduleId . '/' . $this->controllerId) . "'\n                                }\n                                if (options.url.split( '?' ).length == 2)\n                                {\n                                    options.url = options.baseUrl +'/'+ 'export' + '?' + options.url.split( '?' )[1];\n                                }\n                                else\n                                {\n                                    options.url = options.baseUrl +'/'+ 'export';\n                                }\n                                var data = '' + 'export=' + '&ajax='; " . "url = \$.param.querystring(options.url, data);\n                        window.location.href = url;\n                        return false;\n                    }\n                );\n            ");
     return parent::renderMenuItem();
 }