Hola,
¿Alguno tiene algún ejemplo sobre usar jqGrid con esta extensión?
Al usar el widget jqGrid me da un error:
PHP Error
Descripción
Declaration of CPSjqGridWidget::create() should be compatible with that of CPSjqUIWrapper::create()
Archivo Fuente:
C:\Servers\htdocs\aurora_yii\protected\extensions\pogostick\widgets\jqui\CPSjqGridWidget.php(24)
Y tengo esto en la vista:
<h2>Información Geográfica</h2>
<?php
CPSjqGridWidget::create(array(
'target'=>'#list',
//'url'=> CHtml::normalizeUrl(array('Example','data'=>'test')),
//'url'=>CController::createUrl('infoGeografica/cargarmunicipios2'),
'url'=>'',
'datatype'=>'json',
'mtype'=>'GET',
'colNames'=>array('ID No','Nombre', 'Cod INE'),
'colModel'=>array(
array('name'=>'id', 'index'=>'id', 'width'=>55),
array('name'=>'nombre', 'index'=>'nombre', 'width'=>90),
array('name'=>'cod_ine', 'index'=>'cod_ine', 'width'=>80, 'align'=>'right'),
),
'pager'=>'#pager',
'rowNum'=>10,
'rowList'=>array(10,20,30),
'sortname'=>'id',
'sortorder'=>'desc',
'viewrecords'=>'true',
'caption'=>'My first grid',
'theme' => 'steel',
));
?>
Por ahora solo quiero que me salga el grid vacio y luego según la selección de un combo que pondré se rellenará dicho grid.
Saludos y gracias.
PD: he puesto un post en la sección Extensions pero dejo este para intentar ayudar cuando se solucione. Eso espero!!