tag:blogger.com,1999:blog-19969388.post325903963520624245..comments2023-10-25T16:59:32.566+08:00Comments on Ham is a Geek: ExtJS Tip : Select the first row when grid is loadedAnonymoushttp://www.blogger.com/profile/10046970730389911333noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-19969388.post-61004799673670083722014-03-03T19:10:17.777+08:002014-03-03T19:10:17.777+08:00is this code also valid for extjs 4.0, actually i ...is this code also valid for extjs 4.0, actually i tried this, but its not workingAnonymoushttps://www.blogger.com/profile/06644877052698240032noreply@blogger.comtag:blogger.com,1999:blog-19969388.post-87731233206979528872012-10-05T19:46:46.091+08:002012-10-05T19:46:46.091+08:00AD: It is worked but below modification has done i...AD: It is worked but below modification has done in my code<br />.....{<br /> xtype:'grid',<br /> sm:sm,<br /> cm:cm,<br /> store:store,<br /> listeners:{<br /> 'viewready':function(grid){<br /> grid.getSelectedModel().selectFirstRow();<br /> grid.fireEvent('rowClick', grid, 0);<br /> }<br />}<br />}Anonymoushttps://www.blogger.com/profile/14780562897499932759noreply@blogger.comtag:blogger.com,1999:blog-19969388.post-59611759256011446162011-11-09T17:04:32.381+08:002011-11-09T17:04:32.381+08:00Thanks a lot for point solutionThanks a lot for point solutionAnonymoushttps://www.blogger.com/profile/16031726921121029107noreply@blogger.comtag:blogger.com,1999:blog-19969388.post-4352423943366533262011-01-07T21:53:49.561+08:002011-01-07T21:53:49.561+08:00both don't work in my case -- the event itself...both don't work in my case -- the event itself is not fired .Pulkit Agarwalhttps://www.blogger.com/profile/16528706550739784796noreply@blogger.comtag:blogger.com,1999:blog-19969388.post-41209155204934724552010-08-03T21:40:34.092+08:002010-08-03T21:40:34.092+08:00A slightly better option could be to use the Grid ...A slightly better option could be to use the Grid View helpers instead of firing an event:<br /><br />Ext.getCmp('mygrid').on('viewready', function(){<br /> this.getSelectionModel().selectFirstRow();<br /> this.getView().focusRow(0);<br />}, this, { single:true });Unknownhttps://www.blogger.com/profile/13834594745198896985noreply@blogger.comtag:blogger.com,1999:blog-19969388.post-85866962118045489872009-10-13T16:55:52.539+08:002009-10-13T16:55:52.539+08:00Thanks for ur post. It helped me a lot!!!Thanks for ur post. It helped me a lot!!!Anonymousnoreply@blogger.com