Problem - CheckColumn Renderer- Return Value

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Problem - CheckColumn Renderer- Return Value

    Hi.

    I try to put Tooltip text in checkColumn , but i donīt know which value return from the Renderer function.

    If i return false or the value, i see false(text) in the column , and not the checkbox.

    I try in this way:

    COLUMN:

    <ext:CheckColumn DataIndex="AprobarPeriodo" ColumnID="colAprobarPeriodo" Editable="true"
        Align="Center" Width="10" Groupable="false" Hideable="false" Sortable="false" MenuDisabled="true">
     <Renderer Fn="CheckAprobarPeriodoRenderer" />
      </ext:CheckColumn>  
    
    RENDERER FUNCTION:
    
        function CheckAprobarPeriodoRenderer(value, metadata, record, rowIndex, colIndex, store) {
           
            var qtipTpl = new Ext.XTemplate(
    
                    '<tpl for=".">',
                    '<div>Aprobar Período Completo</div>',
                    '</tpl>'
                );
    
            metadata.attr = 'ext:qtip="' + qtipTpl.apply('') + '"';
    
            return value; 
        }
    I also tried to return: false, 'false', undefined, null, etc.

    Which value do i have to return ?

    Thanks.

    Sebastian.
    Last edited by Daniil; Jan 28, 2011 at 9:44 AM. Reason: Please use [CODE] tags
  2. #2

    CLOSED

    Hi,

    I see the solution in this page:

    http://forums.ext.net/showthread.php...ht=checkcolumn

    i return this:
    return '<div class="x-grid3-check-col' + (value ? "-on" : "") + " x-grid3-cc-" + this.dataIndex + '"> </div>';
    Thanks any way.

    Sebastian
    Last edited by Daniil; Jan 28, 2011 at 9:44 AM. Reason: Please use [CODE] tags

Similar Threads

  1. Replies: 4
    Last Post: Jul 25, 2012, 5:45 AM
  2. [CLOSED] Problem with Renderer & Editor
    By logicspeak in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 20, 2011, 8:18 PM
  3. CheckColumn double click problem
    By Thiago Nogueira in forum 1.x Help
    Replies: 3
    Last Post: Nov 18, 2010, 12:10 PM
  4. GridPanel CheckColumn problem
    By Argons in forum 1.x Help
    Replies: 1
    Last Post: Aug 19, 2009, 11:34 AM
  5. get value from checkcolumn
    By maxdiable in forum 1.x Help
    Replies: 2
    Last Post: Jul 10, 2009, 6:28 PM

Tags for this Thread

Posting Permissions