Gradient Colors for Pie Chart

Posted in Uncategorized | 1 Comment

List Context Menu Example

In This below example right click to remove the elements.
public function init():void
{
listMenu = new ContextMenu();
listMenu.hideBuiltInItems();
var menuItems:ContextMenuItem = new ContextMenuItem(“Remove Item”); menuItems.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,handler);
listMenu.customItems = [menuItems];
}
public function handler(event:ContextMenuEvent):void
{
((event.contextMenuOwner as List).dataProvider as ArrayCollection).removeItemAt((event.contextMenuOwner as List).selectedIndex);
Alert.show(“item deleted”);
}

Posted in List | 1 Comment

Grid Filtering and paging on client side

Posted in Grid | 1 Comment

Comparing two dates in flex

if(ObjectUtil.dateCompare(date1, date2) > -1){

Alert.show(date2 + ” is before ” + date1);

} else if (ObjectUtil.dateCompare(date1, date2) = 0){
Alert.show(date1 + ” ” + date2 + ” are equal”);
} else{
Alert.show(date1 + ” is before ” + date2);
}

Posted in Uncategorized | Tagged | Leave a comment

Radio Button Single Selection in DataGrid

when working with ItemRenderer as Radio Button it allows multiple selection because every row in a grid is new radio button so it cannot differentiate even if we specify a radio button group it will allow multiple selection in grid.
For resolving the above problem we need to maintain a property for selection(true,false),on click of radio button call a function and set all other values to false

Posted in Uncategorized | 1 Comment

populating one Drop Down based on Another inside datagrid

when working with itemrenderers(combobox) showin in the below example we need to maintain the dataprovider in the object level.in the below example when we select a column value from combo the corresponding values should be populated in the second column combobox.
for numeric type it should load numeric values
for alphabets it should load alphabets.

Posted in Uncategorized | Leave a comment

Drag and Drop between two list based controls

Drag and Drop between two list based components
Following are some features of the components

  • Drag and Drop between two components
  • Multiple drag and drop

Drag Drop Between two list

Posted in Uncategorized | Leave a comment

parsing parameter through addEventListner

we can pass the additional parameters in addEventListener
var sampleURL:URLRequest = new URLRequest(“home.jsp”);button_mc.addEventListener(MouseEvent.CLICK, menuClick(homeLink));
function menuClick(linkURL:URLRequest){return function(event:MouseEvent)
{
navigateToURL(linkURL, “_self”);
}}

Posted in Uncategorized | 1 Comment

Flex application bookmarking problem/“#” at end of url

You can turn this off in the compiler parameters in Flex Builder. Go into the project settings, then in “Flex Compiler” uncheck the box that says “Enable integration with browser navigation”.

or

set historyManagemnentEnabled=”false” for main application

Posted in Uncategorized | 2 Comments

Hello world!

Welcome to Blog.com.

This is your first post, produced automatically by Blog.com. You should edit or delete it, and then start blogging!

Posted in Uncategorized | Leave a comment