I have a grid and a window with few textboxes and button.i want the values in row to appear in text box when window is opened on button click.i m able to alert a value of test function.
To get the selected row values you can use:
var records = Ext.getCmp('your_grid_id').getSelectionModel().getSelection(),
record = records.length === 1 ? records[0] : null;
alert(record.get('a_row_title'); // specified in the model
To set the value to a text field:
Ext.getCmp('your_textField_id').setValue(record.get('...'));