Hi guys ,
Sometimes you will encounter a situation when you will have to click your popupButton twice .
So to overcome this behaviour
replace the following code in the sdk's PopUpButton code
private function removeFromStageHandler(event:Event):void
{
if(_popUp)
{
PopUpManager.removePopUp(_popUp);
_popUp = null
}
}
with
private function removeFromStageHandler(event:Event):void
{
if(_popUp)
{
PopUpManager.removePopUp(_popUp);
if(showingPopUp)
_popUp = null
}
}
All i have done is check if the Popup is showing up before setting to null .
If the popup is not showing up then dont set the _popUp to null ;
Showing posts with label Flex. Show all posts
Showing posts with label Flex. Show all posts
Wednesday, April 16, 2008
Tuesday, April 15, 2008
Performing Drilldown/up in charts
Sreenivas Had developed a sample which shows how to drill down and up in charts effectively .
If you are looking for a drilldown/up chart visit this blog
If you are looking for a drilldown/up chart visit this blog
Friday, March 14, 2008
Adding a drop-down button to the OlapDatagrid header
Flex give u the liberty to have different renderers . Well first lets understand how things work ..
Requirements

OlapDataGrid extends form AdvancedDataGrid.
OlapDataGrid when creating headers , will call makelistdata for each header .
Now if u wish to pass some information apart from already available info u need to create a class that extends AdvancedDataGridListData.
For example in our scenario we need a popUpButton which shows members when a dropdown button is pressed . So the information of members should be passed on to the PopUpButton . So what we do is we create a class PivotListData that extends the AdvancedDataGridListData and add two properties namely
When you click the dropdown button of Company , you can see the choices .( Some problem with popup button coz of which u need to click the button twice ).
[PS : that I havent added the code for filtering here .. Soon I ll post a pivot Component in Flex ]
Requirements
- Place PopUpButton [ PivotPopUpButton] as a headerRenderer for OlapDataGrid
- When the dropdown is selected the dropdown list provides a list of members of the attribute
OlapDataGrid extends form AdvancedDataGrid.
OlapDataGrid when creating headers , will call makelistdata for each header .
Now if u wish to pass some information apart from already available info u need to create a class that extends AdvancedDataGridListData.
For example in our scenario we need a popUpButton which shows members when a dropdown button is pressed . So the information of members should be passed on to the PopUpButton . So what we do is we create a class PivotListData that extends the AdvancedDataGridListData and add two properties namely
- hasMembers : Boolean
- members : ArrayCollection
When you click the dropdown button of Company , you can see the choices .( Some problem with popup button coz of which u need to click the button twice ).
[PS : that I havent added the code for filtering here .. Soon I ll post a pivot Component in Flex ]
Subscribe to:
Posts (Atom)