PDA

View Full Version : Display an image in the first column of the clicked row in gridpanel



rathsudhish
28 Oct 2013, 10:14 PM
How to display an image in the first column of a clicked row in a gridpanel.

My requirement is when i clicked on the third row of gridpanel then the third row first coloumn cell should dynamically disply an image.

Thanks!!

Scott-1
1 Nov 2013, 6:53 AM
Create the model to have an image and bind the grid to a blank image or preselected image and then in the grid.select method

select : function( row, record, index, eOpts ){

record.set("imgUrl","http://www.image.com/select.gif");
}

The record is the model binding to the grid.