Foros del Web » Programando para Internet » Jquery »

jquery easy UI

Estas en el tema de jquery easy UI en el foro de Jquery en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 14/02/2014, 16:32
Avatar de zerokull  
Fecha de Ingreso: noviembre-2009
Mensajes: 153
Antigüedad: 14 años, 4 meses
Puntos: 1
jquery easy UI

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
  1. <table id="dgCalificaciones" class="easyui-datagrid" title="Segumiento de calificaciones" style="width:700px;height:250px"
  2.                 data-options="
  3.                         rownumbers:false,
  4.                         singleSelect:true,                     
  5.                         url:'<?php echo $this->url(array('controller'=>'Lista','action'=>'gridpromedio'))?>',
  6.                         method:'get',
  7.                         rowStyler: rowStyler,
  8.                         onClickRow: onClickRow                                 
  9.                         ">
  10.             <thead data-options="frozen:true">
  11.                 <th data-options="field:'id_alumno',width:20,align:'center'">ID</th>
  12.                 <th data-options="field:'nombre_alumno',width:180">Nombre</th>
  13.                 <th data-options="field:'matricula',width:100,align:'center'">Matricula</th>               
  14.             </thead>
  15.             <thead>
  16.                 <tr>
  17.                      <th data-options="field:'id_mes',width:150,align:'center',
  18.                         formatter:formatter,
  19.                        editor:{
  20.                            type:'combobox',
  21.                            options:{
  22.                                valueField:'id_mes',
  23.                                textField:'mes_nota',
  24.                                url:'<?php echo $this->url(array('controller'=>'Lista','action'=>'combomes'))?>',
  25.                                 required:true
  26.                             }
  27.                         }">Mes</th>
  28.                     <?php
  29.                     $contador = 1;
  30.                     foreach($this->titulos as $concepto){?>                
  31.                     <th data-options="field:'nota<?php echo $contador; ?>-<?php echo $concepto['porcentaje']; ?>',
  32.                         align:'center',
  33.                         width:150"
  34.                         editor="{type:'numberbox',options:{precision:1}}"><?php echo ucfirst($concepto['concepto']).'-'.$concepto['porcentaje']; ?></th>
  35.                     <?php
  36.                     $contador++;
  37.                     } ?>
  38.                 </tr>
  39.             </thead>
  40.         </table>
quiero agregarle la variable al
Código HTML:
Ver original
  1. <th data-options="field:'nota<?php echo $contador; ?>-<?php echo $concepto['porcentaje']; ?>',
  2.                         align:'center',
  3.                         width:150"
  4.                         editor="{type:'numberbox',options:{precision:1}}"><?php echo ucfirst($concepto['concepto']).'-'.$concepto['porcentaje']; ?></th>

Espero y alguien me pueda ayudar.

Saludos

Etiquetas: easy
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:37.