1. #1
    Touch Premium Member
    Join Date
    Aug 2009
    Location
    India
    Posts
    41
    Vote Rating
    1
    hirendave is on a distinguished road

      0  

    Default Row is undefined error in Gridpanel

    Row is undefined error in Gridpanel


    Hello,

    I am using ExtJs grid panel in my html pages. Following is the config and viewConifg of grid.

    Code:
    store : pageStore,
                    renderTo: 'app_page_content',
                    height : 350,            
                    sm: new Ext.grid.RowSelectionModel({singleSelect:true}),                            
                    loadMask :true,
                    viewConfig: {
                            autoFill :true,
                            enableRowBody:true,
                            showPreview:true,                        
                            getRowClass: function(record, rowIndex, p, store){
                                        if(this.showPreview){
                                            p.body='<div class="row-preview " style="margin-left: 10px;">'+record.data.action+'</div>';
                                            return 'x-grid3-row-expanded';
                                        }
                                        return 'x-grid3-row-collapsed';
                            }
                    }
    Its getting rendered to div. I can select only first row. When I click on other rows it gives me error that Row is undefined. Any idea why this error is coming up?
    Hiren Dave
    Technical Head-TheDesignShop
    davehiren.blogspot.com

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Vote Rating
    75
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    where is the exception?

  3. #3
    Touch Premium Member
    Join Date
    Aug 2009
    Location
    India
    Posts
    41
    Vote Rating
    1
    hirendave is on a distinguished road

      0  

    Default


    In firebug it gives me error at following point.

    resolveCell : function(row, col, hscroll){
    if(!Ext.isNumber(row)){
    row = row.rowIndex;
    }

    In ext-all-debug.js file. I guess this error is due to row preview. I am adding some HTML controls in row preview. Mostly some anchor tags and divs. When I remove row preview it works fine. Any idea?
    Hiren Dave
    Technical Head-TheDesignShop
    davehiren.blogspot.com

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    And you are sure that you are adding valid HTML?

  5. #5
    Touch Premium Member
    Join Date
    Aug 2009
    Location
    India
    Posts
    41
    Vote Rating
    1
    hirendave is on a distinguished road

      0  

    Default


    Yes I guess HTML is valid but I will check it again. Does it effect in row selection of grid?
    Hiren Dave
    Technical Head-TheDesignShop
    davehiren.blogspot.com

  6. #6
    Touch Premium Member
    Join Date
    Aug 2009
    Location
    India
    Posts
    41
    Vote Rating
    1
    hirendave is on a distinguished road

      0  

    Default


    Yes you are right condor. HTML creates problem. Thanks for pointing me right direction.
    Hiren Dave
    Technical Head-TheDesignShop
    davehiren.blogspot.com

Similar Threads

  1. Problem with GridPanel Selection => this.getRow(row) is undefined
    By megmefleg in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 16 Jun 2010, 5:05 PM
  2. Replies: 4
    Last Post: 21 Jan 2010, 7:55 AM
  3. add grid row - o is undefined debug error
    By Natkeeran in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 26 Oct 2009, 8:07 AM
  4. [Solved] EditorGrid add new row error: this.config[colIndex] is undefined
    By mohaaron in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 23 Sep 2009, 9:56 AM
  5. error in deleting row in gridpanel
    By sathishs in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 6 Feb 2008, 2:37 AM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar