Flex :: Change Datagrid Header Text?
Oct 26, 2010i 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 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 RepliesCan i add two header text in Datagrid? My Requirement is to have two Headercolumns in a Datagrid. Is it possible?
View 2 RepliesI created a component that is multiple datagrids side by side that share the same columns (each datagrid is the same as the one before but with different data).ProblemThe header text only shows up on the last datagrid. How can I get the text to show up on all the datagrid headers?Here is how I instantiate the component.
<common:PageDataGrid width="100%" height="100%"
numGroups="5" numRows="9" dataProvider="{createData(5, 9)}">
<common:columns>
[code]........
I'm having some issues aligning the header text of a datagrid. I'm using an embed font for the header text, and when applying the css, the header text behaves as if I'd set the text vertical align to top. I'm trying to vertically center the text, but haven't found a way to make it work.
View 1 RepliesI'm having trouble in rotating the header text in my datagrid. I don't know understand the reason why its failing.
Datagrid column AS3 code:
dgc=new DataGridColumn();
dgc.dataField=columnName.gene;
dgc.labelFunction=gridLabelFunction
[Code].....
For a flex datagrid : How do I have different fonts for a column header and the text in the corresponding cells?
View 1 RepliesHow to change the color of the header and cells and fonts in DataGrid component.
View 2 RepliesI'm using FB4.6 and constructing a variable sized DataGrid in actionscript. I need the text to wrap in the header (actually every cell) of a datagrid. I can find examples of doing it in mxml but not programatically.
View 0 Replieshow to create an headerRenderer and embed and image in the first header (column) for my datagrid.
View 1 RepliesIs it possible to set a tooltip just on the header of a spark datagrid. I do not want any tooltips on the data - just the header. I have played with mouse over and this sort of looks like it might work. This seems a bit of a hack to me though.
View 1 RepliesHow can you display a multi-line column header using the Flex Spark Data Grid for Flex 4.5?
View 5 RepliesI want to display the grid control in Flex ( version 3 . with a marker/(or)icon (which acts like a button) in each colum header of the grid.2. on click of the button i want o popup a textaread to capture some comments.3. on close of the popup i wan to then change th markericon in a way highliting it which would indicate that some comments(footnotes) are present for this column. I am very new to flex looking at the data grid control at this point. I understand that the standard features can be easily plugged in by msxml. Do i need to write some complex action script for above feature listed?
View 2 RepliesI want to remove the highlight that occurs when mouse over occurs on the headers of a DataGrid.
View 4 RepliesIs it possible that when mouse is over the datagrid header the cursor changes to hand cursor instead of the pointer?
View 1 RepliesIs it possible to remove the horizontal separator which divides the headers with the data? I managed to remove the vertical ones with mx.skins.Programmatic skin, but could not find a way to remove the horizontal separator.
View 1 RepliesI want the comboBox to be placed in one of the columns of the datagrid header.The datagrid should be filtered according to the value selected in the comboBox.e.
View 1 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 use a flex mx:datagrid. I can set the headerBackgroundSkin to specify a skin or a picture to be displayed in all datagrid column's headers and it works just fine !
The problem is I can't find any way to specify a custom skin for the currently sorted column (doesn't matter if the sort is asc or desc, this is just to show the user which column is currently sorted).
I also tried to create a custom headerRenderer for each column but it is quite complicated and doesn't work very well.
I have been looking for the solution for a while but I can't find a good approach to do it. It sounds like a very basic need for me...incredible it is so complicated to achieve with Flex !!
I noticed someone was looking for the same thing few years ago but without success... [URL]
I've a simple template I purchased with a flash header. There is a top navigation across the top of the header in previewing it. However, no matter how much I try to locate each of the text to change it per button, in the library, all of the buttons have the same name, in this particular, "main page", but NOT the rest of the menu from left to right in preview mode. I've went through every single library item to locate how to simply change the text, that's all for each of the menu items and cannot find the residual text for each button on the top of the preview navigation. In my library there is no navmenu or anything like that. [code]...
So, no where else in the library do I see, in this particular, the text of the residual navigation items which in this case is at the top of the header. This is nuts. I need to change the remaining items in the top navigation, to things like "main page" which already have, then "buying", "selling, "movng" and so forth, but cannot find how to change the current text. So simple, but I can't figure this out.
I have two datagrids:
- Division
- Members
Both have single columns. Selecting one item from Divsions datagrid should display members of that Division in the Members datagrid. But following code has some problem and Members of a particular division do not show up when respective Divsion is clicked.
Following are some snippets of the related code. Hope someone can spot an error in it.
[Code]..
I'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 RepliesHow do you remove the header row from a Spark DataGrid? MX DataGrid had the attribute "showHeaders" but this doesn't seem to be present in the Spark DataGrid.
This seems like it should be a very easy task, so either I'm extremely dense or just missing something? Do I have to create a custom skin for my DataGrid and remove the header parts? That seems like overkill or is it the Flex / Spark way?
Is there possible make a dataGrid with more than one Row header with different Height and Width in each row ?
View 4 RepliesI have a panel in my application. My requirement is, I also require a link, that is "Help options" to appear in the panel's header. In the left, we will have the Panel's title and in the right corner, I need this link. Is that possible?
View 2 RepliesI need to change the format of my Data Grid text (change the color, and the size, and so on). I was trying to use the CellRenderer class, creating a new one and assigning it to one DataGridColumn, but didn't work...When I try this code, some celds dissapear, and nothing is show but the last row. I just wanna change the text look in the DataGrid.
Code:
import fl.controls.DataGrid;
import fl.data.DataProvider;
import fl.controls.dataGridClasses.DataGridColumn;
import fl.controls.listClasses.CellRenderer;
//New TextFormat object...
[Code] .....
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 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 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].....