Results 1 to 2 of 2

Thread: GRID

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    14
    Vote Rating
    0
      0  

    Default GRID

    Hi,

    I have grid cotains MSRP column and i have one combobox[values are 1 & 2 ] on the same page.
    on change of combo box need to show tooltip on MSRP.

    How to achive please help.


    Thanks
    veera

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    504
      0  

    Default

    Place a renderer on your column:

    Code:
    // css for icon in grid
    td.cell-icon {
        background: url(myimage.png) no-repeat left !important;
        padding: 0 5px 0 16px !important;
    }
    
    // change tooltip/icon based on your data
    function renderIcon(val, meta, rec, rowIndex, colIndex, store) {
    	meta.tdCls = 'cell-icon';
    	meta.tdAttr = 'data-qtip="Icon Tip"';
    	return val;
    };
    
    { dataIndex: 'msrp', header: 'MSRP', renderer: renderIcon },
    Regards,
    Scott.

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
  •