Welcome, Guest
  • Author Topic: cellfocus problem on data grid  (Read 1073 times)

    papachan

    • Moderator
    • Systems Administrator
    • *****
    • Posts: 507
      • View Profile
      • Air Flex Developer
    cellfocus problem on data grid
    « on: 06/06/05, 14:09 »
    hi ! two problems appears on one of mines datagrids, you can see here what happens:

    http://www.delicodeclic.com/out/checkboxes.html

    - the cellfocus effect gone crazy when i use different "cellrenderer" can i quit the cell focus???? or is there any other solution??

    - also the datagrid render always a blank fields at the end, and with my cell renderer it make it visible !!!

    Thankx you for post any comments  :-\ !!!

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: cellfocus problem on data grid
    « Reply #1 on: 06/07/05, 03:07 »
    Probably something in your Renderer class is interfering focus, check i.e Phol examples: http://philflash.inway.fr/htmlrdtip1/index.html, they don't have focus problems. The render for a column allways renders all visible rows (when using UIComponents inside), so you need to check for empty rows to hide it (from inside the cellRenderer class)

    Jorge

    papachan

    • Moderator
    • Systems Administrator
    • *****
    • Posts: 507
      • View Profile
      • Air Flex Developer
    Re: cellfocus problem on data grid
    « Reply #2 on: 06/07/05, 08:15 »
    ok i have seen the exemple from phil flash i have some thing very similar here but i hav add another cellrenderer with my checkbox component inside my datagrid, this is my function inside of one of my cellrenderer class:

    function setValue(value:Stringitem:Objectsel:Boolean):Void
    	
    {
    	
    	
    active._visible true;
    	
    	
    listOwner.selectedIndex getCellIndex().itemIndex;
    	
    	
    var 
    num:Number listOwner.selectedItem.PhotosNum;
    	
    	
    (
    num!=undefined)?active.gotoAndStop(num):active.gotoAndStop("off");
    	
    }


    its possible that i have something in conflict with my cell renderer class....
    but i dont understand your ultimate words:

    Quote
    The render for a column allways renders all visible rows (when using UIComponents inside), so you need to check for empty rows to hide it (from inside the cellRenderer class)


    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: cellfocus problem on data grid
    « Reply #3 on: 06/08/05, 04:57 »
    When using components, the cellRenderer fill all visible rows, doesn't matter if it have or not data. You need to check if the fill is not empty and hide or not the component.

    Jorge