Hola. Espero me puedan ayudar. Estoy trabajando con jquery Easy UI Data Grid
La pregunta que tengo es: Como puedo agrega una variable DATA de HTML 5 en un data grid; mi codigo es este:
Código HTML:
Ver original<table id="dgCalificaciones" class="easyui-datagrid" title="Segumiento de calificaciones" style="width:700px;height:250px" data-options="
rownumbers:false,
singleSelect:true,
url:'<?php echo $this->url(array('controller'=>'Lista','action'=>'gridpromedio'))?>',
method:'get',
rowStyler: rowStyler,
onClickRow: onClickRow
">
<thead data-options="frozen:true"> <th data-options="field:'id_alumno',width:20,align:'center'">ID
</th> <th data-options="field:'nombre_alumno',width:180">Nombre
</th> <th data-options="field:'matricula',width:100,align:'center'">Matricula
</th> <th data-options="field:'id_mes',width:150,align:'center', formatter:formatter,
editor:{
type:'combobox',
options:{
valueField:'id_mes',
textField:'mes_nota',
url:'<?php echo $this->url(array('controller'=>'Lista','action'=>'combomes'))?>',
required:true
}
<?php
$contador = 1;
foreach($this->titulos as $concepto){?>
<th data-options="field:'nota<?php echo $contador; ?>-
<?php echo $concepto['porcentaje']; ?>',
align:'center',
width:150"
editor="{type:'numberbox',options:{precision:1}}">
<?php echo ucfirst($concepto['concepto']).'-'.$concepto['porcentaje']; ?></th> <?php
$contador++;
} ?>
quiero agregarle la variable al
Código HTML:
Ver original<th data-options="field:'nota<?php echo $contador; ?>-
<?php echo $concepto['porcentaje']; ?>',
align:'center',
width:150"
editor="{type:'numberbox',options:{precision:1}}">
<?php echo ucfirst($concepto['concepto']).'-'.$concepto['porcentaje']; ?></th>
Espero y alguien me pueda ayudar.
Saludos