Results 1 to 2 of 2

Thread: Send values using a renderer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User reyes_edward's Avatar
    Join Date
    Sep 2008
    Vote Rating

    Default Send values using a renderer

    Hello everybody ...
    When you retrieve data and put in the GRID
    only recover 'n_meta' and 'n_m00'
    It is possible that when retrieving the data to make an operation using the renderer and burn in 'n_porc' ===> (n_meta / n_m00) * 100

    function pctAvance(val){
            return val;
    var Grid = new Ext.grid.EditorGridPanel({
            store: Inicio,
            columns: [
          {header: "Programado",dataIndex: 'n_meta', width: 70, align: 'right'},
    {header: "Ejecutado",dataIndex: 'n_m00', width: 70, align: 'right'},
    {header: "%",dataIndex: 'n_porc',  renderer: pctAvance, width: 70, align: 'right'}]

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts