Results 1 to 7 of 7

Thread: ext.getcmp giving problem...

  1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    122

    Arrow ext.getcmp giving problem...

    hey,
    as i am newbie , facing problem in ext.getcmp

    Code:
    gridMask = new Ext.LoadMask(Ext.getCmp('publicTreeGrid'), {msg:"Loading reports, please wait...",id:"gridMask"});

    this give me error this.el is null or not an object...

    i am using gridMask (LoadMask) for grid having id publicTreeGrid and not for whole page..

    plz help asap tc

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    188

    Default

    try Ext.getCmp('publicTreeGrid').getEl()

  3. #3
    Sencha User
    Join Date
    Aug 2008
    Posts
    122

    Arrow thanks but its also not working

    Code:
    window.loadingMask = new Ext.LoadMask(Ext.getCmp('publicTreeGrid').getEl(), {msg:"Loading data, please wait...",id:"loadingMask"});

    this is also not working and givin same error...reply asap plzzz

  4. #4

    Default

    Why not just configure a loadMask right in the grid's constructor instead? ('loadMask' config option).

  5. #5
    Sencha User
    Join Date
    Aug 2008
    Posts
    122

    Arrow ya

    tht can be done , but i want to do this way..why it is not working but..?
    take care

  6. #6

    Default

    I would be curious to know why you want to to it this way, since if you configure it in the constructor the hide/show events will be managed for you automatically...
    But I am betting the error is because you are trying to create the loadMask before the grid has been rendered, which will not work.

  7. #7
    Sencha User
    Join Date
    Aug 2008
    Posts
    122

    Default hmm ok

    thanks dude...but i also tried using it in side render listener of grid...but still its giving problem...

Posting Permissions

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