[CLOSED] JavaScript GridPanel

  1. #1

    [CLOSED] JavaScript GridPanel

    Hi, how do I get all objects GridPanel of my page? Because I like to call a routine for each GridPanel.
    Example: processaGrid (Grid1); processaGrid (Grid2) processaGrid (Grid3) ....
    Last edited by Daniil; Sep 19, 2011 at 6:30 PM. Reason: [CLOSED]
  2. #2
    On the client side (javascript)
  3. #3
    Hi,

    Within the Ext.Net.Utilities library, there are some helpful .FindControls() Method. You can use these Methods to find a collection of controls by Type.

    Hope this helps.
    Geoffrey McGill
    Founder
  4. #4
    but on the client side (javascript)?
  5. #5
    I need to find all GridPanel my page but I can not. The code has to be client-side (javascript)
  6. #6
    Please any suggestions
  7. #7
    Try this
    var grids = [];
    Ext.ComponentMgr.all.each(function(item){
         if(item instanceof Ext.grid.GridPanel){
            grids.push(item);
         }
    });
    
    // here need to use grids array
  8. #8
    Hi, I am using CheckboxSelectionModel. In the routine that's how I test if a row is marked
    var loadGrids = function () {
        var obj;
        Ext.ComponentMgr.all.each(function (item) {
            if (item instanceof Ext.grid.GridPanel) {
                obj = Ext.getCmp(item.id + '_GridData');
                if (obj != undefined &&  what I do here to see if was marked) {
                    saveData(obj, item);
                }
            }
        });
    }

Similar Threads

  1. [CLOSED] GridPanel created in Javascript. Reconfigure.
    By supera in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 27, 2012, 2:01 PM
  2. Replies: 2
    Last Post: Oct 06, 2011, 8:40 AM
  3. Replies: 8
    Last Post: May 02, 2011, 5:36 PM
  4. [CLOSED] Create GridPanel dinamically with javascript
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 09, 2010, 9:58 PM
  5. GridPanel Selected Value With Javascript.
    By grmontero in forum 1.x Help
    Replies: 7
    Last Post: Mar 26, 2009, 4:03 PM

Posting Permissions