flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilikeflex <ilikef...@yahoo.com>
Subject Re: AdvancedDataGrid | Header Renderer | Tabs Support
Date Mon, 17 Mar 2014 20:29:30 GMT
Thanks for the pointer.

I trapped event and did the following

var advancedDataGridHeaderInfo:AdvancedDataGridHeaderInfo =  
visibleHeaderInfos[2];
var itemHeaderRenderer:Object = advancedDataGridHeaderInfo.headerItem;
(itemHeaderRenderer as FilterHeaderRenderer).setFocus();

Currently, i am hardcoding the visibleHeaderInfos[2]. This can be made
dynamic.

But how do i make sure that FilterHeaderRenderer recieves focus. I have
focusEnabled="true" and also implemented foucusIn event for headerrenderer.

But when i debug the setFocus method for FilterHeaderRenderer

public function setFocus():void
    {
        var sm:ISystemManager = systemManager;
        if (sm && (sm.stage || usingBridge))
        {
            if (UIComponentGlobals.callLaterDispatcherCount == 0)
            {
                sm.stage.focus = this;
               * UIComponentGlobals.nextFocusObject = null;*
            }
            else
            {
                UIComponentGlobals.nextFocusObject = this;
                sm.addEventListener(FlexEvent.ENTER_FRAME, setFocusLater);
            }
        }
        else
        {
            UIComponentGlobals.nextFocusObject = this;
            callLater(setFocusLater);
        }
    }

It make UIComponentGlobals.nextFocusObject null.
So i am kind of stuck here.

Any pointer to move ahead.





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/AdvancedDataGrid-Header-Renderer-Tabs-Support-tp5523p5588.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message