Conflict between two cgrdiviews

Hi guys.

I have two cgridviews on the same page.

Both are populated via ajax, that´s the view:




<div id="data">

   <?php $this->renderPartial('grid_aceite',array('myValue'=>$myValue));?>

    				   

</div>

<div title="Análise de Inconsistência"style="display:none" id="div_dialog_inconsistencia">

	<div id="grid_inconsistencia">

    	    <?php	

	       if ($dados_grid!=NULL)

		$this->renderPartial('grid_inconsistencia',array('dados_grid'=>$dados_grid));

			

			

	      ?>

       </div>

</div>        



First problem:

The problem is that when the first grid is loaded and i try to load a second grid "grid_inconsistencia"(Note: The second grid is inside a dialog), the button on the page that verify if a row was select in the first grid fails, shows the error messagem: settings is undefined, on my firebug.

Second Problem:

When I try to change the page in the second grid, the style of it is lost and is equal to the attached figure that will.

How can i solve this problem?