Threaded View

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    28
    Vote Rating
    0
    Ankit.Desai is on a distinguished road

      0  

    Default Unanswered: How to Change action column icon dynamically?

    Unanswered: How to Change action column icon dynamically?


    Hello,

    I am trying to display
    xtype:'actioncolumn'
    icon config dynamically base on lets say role of login person.

    code is as below

    Code:
    {
                xtype:'actioncolumn', 
                width:50,
                id:'actionCol',
                items: [{
                    icon: '../imgs/edit.gif',  // Use a URL in the icon config
                    tooltip: 'Edit',
                    handler: function(grid, rowIndex, colIndex) {
    
    
                    }
                }]
        }
    I also have fields like below

    Code:
    var fields = [
         {name: 'site_external_id', type: 'string'},
         {name: 'site_name', type: 'string'},
         {name: 'site_address', type: 'string'},
         {name: 'site_new', type: 'string'},
         {name: 'site_status', type: 'string'},
         {name: 'site_access', type: 'string'},
         {name: 'site_id', type: 'string'}
      ];
    site_access will have view or edit value. So, I am trying to display icon base on view or edit value.

    -Ankit
    Last edited by Ankit.Desai; 5 Oct 2011 at 8:33 AM. Reason: typo

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar