You decide to use an AdvancedDataGrid to display your data and for one of the columns you would prefer to use an icon instead of a text label to indicate the kind of data this column represents. First step is building the renderer. You can use either MXML or ActionScript but for this example we’ll [...]
410 readersThe AdvancedDataGrid in Flex certain contains way more functionality than the regular DataGrid in Flex. It contains features like multi-column sorting, multi-cell selection, grouped columns and much more.Once feature I recently discovered is that you can specifier the formatter to be used on a particular AdvancedDataGridColumn. This allows you to quickly format, say monetary values,
491 readersI was displaying some data in a DataGrid and a requirement came up to show tooltips on the columns which had more data than the column width. Since increasing the column width was not an option, the ideal solution was to show the the ellipses (“…”) at the end of the column and the rest
668 readersSo we needed to add icons and vertical separators for the Flex Menu Bar for one of our projects! Adding Separators: This was accomplished by adding a MenuItem with the label=”|” and enabled=false <menu> <menuitem label=”Tools” data=”Tools” icon=”icons/tools.png” /> <menuitem type=”separator” data=”|” label=”|” enabled=”false” /> <menuitem label=”Help” data=”Help” icon=”icons/help.png” /> </menu> Adding Icons: The MenuBarItem
863 readersWhile working on some stuffs with related to htmltext using some styles for Label, it seems to be not displaying the text. Here were the some sample scripts denoting the error which i encountered <?xml version=”1.0″ encoding=”utf-8″?> <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” initialize=”init()” layout=”vertical”> <mx:Label> <mx:htmlText> <![CDATA[ Label text goes here ]]> </mx:htmlText> </mx:Label> </mx:Application> It might seems
658 readersRecently, I had to sort a column of data based on a number wrapped in parethesis. Fortunately, there was an extra column being passed back from ColdFusion query that made this task simple. Using the sortCompareFunction, I was able to sort on a datagrid column using a different column from my query or array collection.
531 readersWith this tutorial I want to shed some light upon how you dynamically can add columns that have ComboBoxes for cells. To achieve this we have to use a custom renderer for the column, we will also store an object in each cell representing the data in the ComboBox as well as the choise the
1198 readersThe following example shows how you can set the text color on a Spark List control item renderer label in Flex 4 by setting the color style in the item renderer’s dataChange event handler. <?xml version="1.0"?> <!-- http://blog.flexexamples.com/2010/05/06/setting-a-conditional-text-color-on-a-spark-list-control-item-renderer-in-flex-4/ --> <s:Application name="Spark_List_itemRenderer_color_test" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" [...]
382 readers Are you unlucky user of Windows XP English with clean install? If yes, then probably you cannot see Thai characters in Spark text components (e.g Spark Label) in the following demo: --> --> Code listing: http://gist.github.com/390993 New Flex Spark Label to display text uses the new Flash Text Engine (FTE) [...]
2394 readersI’m going to demonstrate how to use the datagrid component with an xml file. When you need to display tabular data there is no quicker and easier way than to use a datagrid, and when paired up with an xml file it makes things all the better. Step 1: Setting up the Flash Document Create
1063 readersIn this tutorial we are going to create an unusual, but very cool kind of clock: a binary clock. Final Result Preview Let’s take a look at the final result we will be working towards: Step 1: What Does Binary Mean? Everyone knows how to count, but not everyone knows there are so many different ways to do so.
8,744
Curious what others are searching for? Below are the most popular search terms over the last 30 days.

