ActionScript 3.0 :: Change The Color Of The Header And Cells And Fonts In DataGrid Component?
Aug 31, 2011How to change the color of the header and cells and fonts in DataGrid component.
View 2 RepliesHow to change the color of the header and cells and fonts in DataGrid component.
View 2 RepliesHow can I set a size for my DataGrid component's cells?
View 1 Replieshow could i remove these two colors for the header.... i could override rollover for the columns and leave the selection, but i want to remove these two effects from the header and i couldn't find a way to do that....
View 2 RepliesFor a flex datagrid : How do I have different fonts for a column header and the text in the corresponding cells?
View 1 RepliesI am using the following code to insert a DataGrid object into a basic Panel:
<mx:DataGrid borderThickness="0"
height="120" dataProvider="{collection}"
rowHeight="12" fontSize="9"
showHeaders="false" verticalGridLines="false">
<mx:columns>
[Code]...
I am using the flex datagrid to allow the user to edit some data. My update process relies on a CollectionEvent of type update. Basically I catch this event package the values and update the database. However, if the user edits a cell then moves to edit a cell in the same row the value is updated but a collection event is not fired. Only when clicking out of the row the event is fired. Has anyone had experience with this. I have heard the datagrid is a little quirky is this one of those quirks or am I doing this all wrong?
View 1 RepliesI am looking for a solution to complete within AS2 that allows a user to hover over a column header within a datagrid and a tooltip would pop-up.I'm completeing a sports statistics sheet within Flash and I am obviously putting numbers in each column, else I would use the full column header but its just a number so I don't want to increase the width of the columns just for that.If anyone knows of a way to make each individual column header able to pop up a tooltip plz post or recommend something. To give an example if it isnt obvious of what I'm trying to doLets say my Table looks like soGP | G | A | +/- | %
View 2 Repliesi have a datagrid. i want to change the header text of the first column to a dynamic text on click on a button.
View 1 RepliesHow can I use cell render class to modify datagrid's header ! but head is not a cell ! I just want to change header text align!
View 4 RepliesI'm having a really annoying problem styling the AdvancedDataGrid header text colors. With a regular DataGrid you can use a property called "headerStyleName" to set the color of the header text. According to the documentation this style is applicable to AdvancedDataGrid as well.Url..Here is a sample app that will show you what I'm talking about. Notice that both grids share the same style but only the normal grid will apply it.[code]
View 2 RepliesI have below columnGroup in advancedDataGrid control and I want to show the header in red background color and also applied the style but the background color in the header does not show as red only the text color in the header is changed.[code]...
View 2 RepliesIs there any way to merge cells (vertically and/or horizontally) in a datagrid? At least, for example, is there a way to show that certain datagridcolumns belong to one group. For example, I'll take three columns: column1, column2, column3. All these three should be grouped to the Category cell with a rowspan of 3 -- a "super header" if you will.
View 4 RepliesHow can I add a button control in cells of a datagrid? I'm looking to have a button in each row of one column in the datagrid. The datagrid control rows don't need to be selectable in any way.
View 1 Replieshow to change the color of the selected row of datagrid in as3.
in as2 it was like dataGrid.setStyle("selectionColor", "0x990000");
but how to achive this in as3
Is there any way I can change the text color in my datagrid? I am looking for the simplest solution possible. I want to change all of the text to red instead of black. how to accomplish this?
View 5 RepliesI have datagrid in which some cells (not entire columns) are editable and others are not(all is predefined).what we want to achieve is that to differentiate editable and uneditable cells applying differnet colors.
View 1 RepliesI'm having trouble vertical aligning text inside cells in a DataGrid in Flex. I tried this.setStyle("vertical-align", "middle) in an itemRenderer on the column but it doesn't seem to work. I tried verticalAlign as well.
View 5 Repliesand just as many of you I'm migrating from AS2 to AS3. So far I had absolutely no issues with the migration due to the fantastic easy to understand tutorials around the web. That until I found my nemesis: as3 components Well here is the deal:I'm trying to make a datagrid that will display a list of online players in a game. This list have to have their names in different colors (gold and white).Upon mouse roll over they go on a "light green" color (JUST the text) and return to their regular state on mouse out.It used to be easy on AS2 since I had access to specific tutorials about that, but now on AS3 I feel completely lost.I've managed to get the text colors by a code I found that sorta "cheats" by replacing an inhibit class inside the datagrid forcing it to accept html code. This is what I've got so far (the code has been simplified for better understanding):
MultiLineHtmlCell.as
Code:
package {
[code].....
I need to merge the cells as shown in the picture:
View 2 RepliesI want to change the text color of the datagrid row on particular condition ie.i am checking on a condition.If that satisfies then I have to change the text color of each cell ie the whole row.[code]
View 1 RepliesI'm using the Spark DataGrid for the first time and finding it generally very usable.There's something I'd like to do with the contents of my grid now that I've drawn it though and I'm a bit stuck as how to proceed.I'd like to make a function that runs through each cell of a certain column in the DataGrid, that checks each value against an Array of predefined values; if it finds a match, it should then highlight the cell as conflicting, by changing its colour.I know you can access a particular cell's item renderer, by using the getItemRendererAt() function, and passing the column and row indices. But I can't see how I would, for example, loop through the values in each column
View 2 RepliesI have a datagrid in my Flash app whose data keeps updating quite frequently.On every update, I need to change the cell color of only those cells whose data has changed.That too, if the updated value is less than the older value then the cell color should change to RED else, GREEN.I have tried using labelFunction, cellrenderer, etc. But to no avail.By no means, I am able to access the present data in the cells to compare it with the new data.
View 1 RepliesI have just made a dynamic text box with a component scroll bar in Flash 8,how would I change the color of it to match the color scheme of the site? You can see what I mean on the ABout page of this site...
View 1 RepliesThis is a snippet of code in our custom item renderer which is in actionscript:
textCustomItemRendererTempForTab.tabEnabled=true;
textCustomItemRendererTempForTab.focusEnabled=true;
textCustomItemRendererTempForTab.setFocus();
Alert.show( "Without this alert focus goes to next grid " );
keyboardEvent.preventDefault();
keyboardEvent.stopImmediatePropagation();
keyboardEvent.stopPropagation();
Right now tab navigation works (on tab, focus goes to next editable cell) with the alert inserted in the code but I'm not sure why because I believe the alert in the code breaks the flow of event bubbling. However without the alert (which is what we are going for) the focus goes to the next grid in our UI.
You can see the attempts of trying to stop the event from going to other components. I have also tried to call preventDefault() and stopPropagation() on the datagrid when it receives a tab key event.
how to allow proper tab key navigation without an alert?
I can't seem to figure out how to change the color of a font or the font iteself on the button component. I'm sure it's a simple procedure. Everything seems to point you to changing the colors of the button itself, but not the font.
View 1 Repliesif this question is kind of newbie I'm really new with flash but I'm using this dice on my site [URL].. and I managed to chage the color but I was wondering if it was possible to change the dots color to white as well?
View 1 RepliesI'm adding some Buttons (from the UI components) to the stage and I would like to change their background color using AS3.It might sound stupid but I can't find how to achieve this anywhere, even in the flash AS3 documentation.
View 6 RepliesI am attempting to combine two AS files that are acting as cellRenderers individually but not simultaneously for cells in a datagrid in a Flash document I have created. The first styles the cells to have alternating row colors and the second allows for non-text content to be rendered. The issue is whenever I attempt to combine them the document reports errors with "super" and "override" among others.
[Code]...
How do i change the font color of combo-box component?
View 7 RepliesI am trying to find out how to change the text color of the comboBox component from black
to white. I have found multiple posted answers online, but none has worked.
Here what I have tried: