Ext.fly(...)' is null or not an object

  1. #1

    Ext.fly(...)' is null or not an object

    Hi when I am using CommandColumn inside the GridPanle for open pdf on the click of grid column icon , i will get this error on clicked on buttons and dropdowns . error -Ext.fly(...)' is null or not an object
  2. #2
    Geoffrey McGill
    Founder
  3. #3

    Ext.fly(...)' is null or not an object due to CommandColumn

    I am using command column inside the grid but i am getting the Ext.fly is null or object error.

    1 . // Note : this function called on Grid's "Command" event for open the pdf.

                  var commandHandler = function (cmd,record) {
                     showPDF(record.data.FormsFile,"false");     
                  }
    2 .call this function on grid Listener -------

     <Listeners>              
            <Command Fn="commandHandler" />
       </Listeners>

    3 . using Command Column ------

     <ext:CommandColumn ColumnID="ViewPdf" Width="30" Header="View" DataIndex="FormsFile" Sortable="false"
                              Hideable="false" Resizable="true">
                              <Commands>
                                <ext:GridCommand Icon="PageWhiteAcrobat" CommandName="ViewPdf" ToolTip-Text="View form"   />
                              </Commands>
        </ext:CommandColumn>
    Last edited by geoffrey.mcgill; Nov 10, 2010 at 6:41 AM. Reason: please use [CODE] tags
  4. #4
    Please wrap your code samples in [CODE] tags. There's a # button in the WYSIWYG editor to help.
    Geoffrey McGill
    Founder
  5. #5

    Ext.fly is null or not a object

    if i am using ImageCommandColumn then there is no ext.fly {...} error on clicked of buttons and dropdowns of the page.

    <ext:ImageCommandColumn ColumnID="ViewPdf" Header="View" Width="30" Resizable="true" Hideable="false"
                              DataIndex="FormsFile" Sortable="false">
                              <Commands>
                                <ext:ImageCommand CommandName="ViewPdf" Icon="PageWhiteAcrobat" ToolTip-Text="View form">
                                </ext:ImageCommand>
                              </Commands>
                            </ext:ImageCommandColumn>
    thanks
    Kapil
    :)
    Last edited by geoffrey.mcgill; Nov 10, 2010 at 6:41 AM.
  6. #6
    Hi,

    You have to provide full test sample which demonstrates your scenario

Similar Threads

  1. 'this.grid' is null or not an object
    By xtremexploit in forum 1.x Help
    Replies: 4
    Last Post: Jul 04, 2011, 3:34 PM
  2. 'Ext.net.ResourceMgr' is null or not an object
    By harshad.jadhav in forum 1.x Help
    Replies: 3
    Last Post: Jan 14, 2011, 10:01 PM
  3. 'getRowEditor()' is null or not an object
    By NestorLeone in forum 1.x Help
    Replies: 5
    Last Post: Aug 26, 2010, 7:40 PM
  4. 'insertAdjacentHTML' is null or not an object
    By Tbaseflug in forum 1.x Help
    Replies: 6
    Last Post: Jun 29, 2009, 5:00 PM
  5. Undefined is null or not an object???
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Mar 09, 2009, 11:11 AM

Posting Permissions