Results 1 to 3 of 3

Thread: How to capture the events for renderer data in GridPanel cell?

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    17

    Thumbs up How to capture the events for renderer data in GridPanel cell?

    Hi all,
    I am having GridPanel with Recrods, For every record i renderred icons at the last cell for edit,delete and update. What i want is, how can i capture the click event for each icon. I tried by best to resolve this problem, but failed. Please give me a good solution to complete this.

    HTML Code:
    var mygrid = new Ext.grid.GridPanel({
    .........
    {header:"Actions",renderer:function(value,metaData,record,rowIndex,colIndex,store){
              return '<img src="edit.png" />&nbsp;<img src="delete.png" />&nbsp;<img src="update.png" />';
    }}
    });
     
    Thanking you,
    sureace.

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    Why not just use Ext.grid.ActionColumns for this? There's an example in the docs.

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    17

    Default

    Hi fay,
    Thank you very much.
    Regards,
    sureace

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •