-
29 Dec 2010 7:01 AM #1
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.
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?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'; } }
-
29 Dec 2010 10:45 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33
where is the exception?

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
30 Dec 2010 1:03 AM #3
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?
-
30 Dec 2010 1:07 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 44
And you are sure that you are adding valid HTML?
-
30 Dec 2010 1:38 AM #5
Yes I guess HTML is valid but I will check it again. Does it effect in row selection of grid?
-
30 Dec 2010 1:52 AM #6
Yes you are right condor. HTML creates problem. Thanks for pointing me right direction.
Similar Threads
-
Problem with GridPanel Selection => this.getRow(row) is undefined
By megmefleg in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 16 Jun 2010, 5:05 PM -
[SOLVED] Grid-Error when double-clicking a row - this.getRow(row) undefined
By PranKe01 in forum Ext 3.x: BugsReplies: 4Last Post: 21 Jan 2010, 7:55 AM -
add grid row - o is undefined debug error
By Natkeeran in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 26 Oct 2009, 8:07 AM -
[Solved] EditorGrid add new row error: this.config[colIndex] is undefined
By mohaaron in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 23 Sep 2009, 9:56 AM -
error in deleting row in gridpanel
By sathishs in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 6 Feb 2008, 2:37 AM


Reply With Quote