show different item on selectionchange on a grid
问题 i have a grid and a form, i need to show different items on the form each time we select a row on that grid i ve been looking on how to do this, and found Ext.getCmp('myform').hide() // or .show() and listeners: { selectionchange: function () {...} now i dont know which row is selected so i can specify which item to show thanks 回答1: Try to following code in your grid. listeners:{ itemclick:function(view, record, item, index, e ) { var v = record.get('firstName'); .... .... } } firstName will