PDA

View Full Version : How to get the ID of the GRID on clicking it .



manohar
23 Apr 2007, 3:06 AM
Hi Good Evening ,

This is Manohar , I am having problem in retrieving the ID of each rows in the GRIDS on clicking . Please help me in this .

Thanking you ,

regards ,

Manohar ..

sonic64
23 Apr 2007, 3:20 AM
Check this out:
http://extjs.com/deploy/ext/docs/output/Ext.grid.RowSelectionModel.html

Here to get you started:


var sm = new Ext.grid.RowSelectionModel({singleSelect:true});
sm.selectFirstRow();
id: sm.getSelected().data['id'];