Flex :: Make Datagrid Selection And Hover Effect (blue Color) Programmatically
Jan 25, 2010
I have two datagrids which should do everything synchronic except the data entry. I already managed to make them scroll synchronic by using the scroll event. My question is now how to select a item of a datagrid only programmatically, and how to get the mouseover effect and underlining the corresponding row with a bright blue color?
View 1 Replies
Similar Posts:
Jan 28, 2010
I have a question I came up with 3 days ago about how to do the blue underlining of a datagrid row programmatically. I thought to have found the solution, with just adding the column and row Indexes to the datagrids editedItemPosition Property.It turned out, that this is just practical if you want to be able to edit the grids row right away. But what if I just want to underline it with the blue color?Additionally how to detect that a list based Item got this kind of selection? es there a event to detect that? whats the name of this kind of selection?
View 1 Replies
Jun 29, 2011
I have a custom skin applied to a Flex 4 spark datagrid. One really annoying issue I am having is finding the ability to override or change the selected row border color. I was able to set the selectionColor just fine but the border is still the default light blue color. I need it to be yellow.
Anyone know where I can find this style or override this border that is being set when selection happens within the skin itself.
View 2 Replies
Jul 22, 2010
how 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 Replies
May 17, 2009
How can I make this blue effect of lines? like in diablo 3 site
View 1 Replies
Feb 10, 2011
Flex 4: mx|tree - How can I disable items selection? I want to disable the hover and selection colors so when a user selects an item it's background won't change color. how is that possible. I do not want to choose the selection and hover colors. the background contains an image so it won't be useful. I need to completely disable the colors.
I tried to override the Tree class but with no luck. This is the class that overrides the tree Class:
package components.popups.WelcomeBack {
import mx.controls.listClasses.IListItemRenderer;
import mx.controls.Tree;
[Code] .....
View 3 Replies
Mar 17, 2010
I have I datagrid, on which I want to select multiple rows on a other user interaction than the one intended by the Programm. I'm wondering, whether I can programmatically select some rows depending only on code?
View 1 Replies
Apr 23, 2010
I am using a tilelist I want to change the border color and the background color of the tile on selection.
View 1 Replies
Aug 10, 2011
I have this code but I am trying to convert this to actionscript so I render this programaticaly but I failed. how do i write this on AS?
<mx:DataGrid allowMultipleSelection="true" id="dg_disk" dataProvider="{people}" height="100%" width="100%" selectedIndex="0" x="50" y="50">
<mx:columns>
<mx:DataGridColumn dataField="name"
[Code]...
View 5 Replies
Jan 8, 2010
Is there a way to disable the hover effects?I don't want flex to highlight the entire component for both link buttons and menu bar.On the menubar, I applied a backgroundSkin, so having flex highlight the whole menubar when the user hovers their mouse on top quitely destroys the design.
View 1 Replies
Jun 29, 2011
How do I change the background color of the item I'm currently hovering over in a list? The default is that light blue, but I would like to be able to change it to whatever I want. I've gone through the list of available options, but I didn't see anything that stuck out at me.
I'm sure this is ridiculously simple, I just can't seem to figure it out.
View 2 Replies
Feb 11, 2011
I have a Datagrid that is being populated by an ArrayCollection (rows) of Arrays (columns).I need to update the headerText of each column based on a List that will correspond with the total number of items within each array in the arraycollection. What is the best way of doing this? I know that I can set a listener in the List and update the headerText using (matrixDatagrid.columns[i] as DataGridColumn).headerText but I am looking for a cleaner solution.
View 1 Replies
Jul 24, 2011
What is the equivalent of editedItemPosition for the Spark datagrid?
View 1 Replies
May 12, 2010
flex example to select multiple row selection in datagrid
View 1 Replies
Jun 6, 2011
My datagrid is filled with data from an Oracle database. The datagrid refreshes after 1 min. After that, I lose the selected item. I want to avoid that. Consider that it's quite possible that there is new data after refresh, so the selected index may no longer appear in the datagrid after a refresh.
View 1 Replies
Oct 14, 2011
I have a dataGrid in Flex to which data is added dynamically using dataGrid1.dataProvider=myArrayCollection;The DataGrid is non-editable and defined in mxml as [code]The data in myArrayCollection definitely does not contain duplicates.I am not able to select any row except the last.This occurs when I overlay the AIR 3 SDK on my copy of Flex
View 1 Replies
Aug 11, 2011
I have a TabNavigator, and each tab is a Module. One of the modules is labelled Units and the full code of the module is posted in this post. There are several problems:
1) Forms are not populated with data from the datagrid selection.
2) Selecting a row and clicking delete gives the very-common error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
A trace on the valueObject unit within the selectionChangeHandler function gives NULL. Why? Note: In other modules (other tabs of the TabNavigator), I have DropDownLists populated with units. This means that the valueObject Unit is defined in the other modules. However, valueObjects should be private to modules, and not shared.
[Code]....
View 1 Replies
Dec 17, 2009
Back again with another Flex question. I have an XML structure like...
[Code]...
Now I got his displaying on my grid by saying dataProvider=XMLListCollection... What I want to do is on selection of a row, check if it has "Address" tag, if it has display the other grid, else hide the grid.
View 2 Replies
Jan 5, 2010
I have a datagrid with 5 columns. The first column has checkboxs and rest four columns have data from the dataProvider.
I have two relating issues: First: I want the row to get selected when I click on a checkbox, or if i click on multiple checkboxes, every row should stay selected in the datagrid for whose checkbox is selected.
Second: If a row or multiple rows are selected, the corresponding checkbox should get selected too.
My code is given below:
<mx:DataGrid id="dg_trashContent" allowMultipleSelection="true"
verticalGridLines="true"
dataProvider="{trashDataProvider}"
[code].....
View 2 Replies
Apr 6, 2010
I have a DataGrid and I set the DataProvider to my data. When my data changes the DataGrid loses the selected row and the scroll bar jumps back to the top. How do I maintain the selection and scroll position?
View 2 Replies
Oct 20, 2010
I'm working on my first ever AIR application with flashbuilder - just so you know. I've bound a mx:DataGrid component to a DataProvider which is a mx:HTTPService fetching an xml file with items. To keep the data up to data I'm polling the webservice on a given interval.
My problem is that I loose the currently selected item in my DataGrid when the data is updated. I've tried to save the DataGrid.selectedIndex and set when the data is updated, but I'm not sure when to do it?! The closest I've come is to restore the index when the updateComplete event of DataGrid is fired. This works, but the selection first fades away and then fades in - not updated soon enough. So what is the best way to keep the selection? (only one selected item at a time) And as a side question: is there a convenient way to only update the data when it has actually changed?
View 2 Replies
Mar 1, 2011
I have a datagrid.In this datagrid I have a combobox item editor. This datagrid also has multiple columns where a user inputs numbers in each column. These numbers are then calculated by formula where the sum is posted in the "total" column. In this combobox there are two options for the user to choose from and each option has a different formula for calculating the inputted numbers. What I want is for when a user chooses "option 1" one formula is used to do the calculation, when "option 2" is chosen by the user then formula two is used to the calculation.Here's an example:
Combobox Option 1 (formula 1) is chosen by user = (Column2 - Column1) x column3 = "total" column
Combobox Option 2 (formula 2) is chosen by user = (Column1 - Column2) x column3 ="total" column
I realize you would use a conditional such as "if else" statement, but im just not sure how to do it. I've been trying to implement this for a while with no success.
View 2 Replies
Oct 21, 2011
i have an array list of data which i am showing in spark data grid. once i select an idem and click on a button that i have linked with datagrid it adds a panel on screen. I want to disable this selection i-e to tell that this item panel have already been added. Any ideas how can i do that?
View 2 Replies
Dec 13, 2010
I want to display an image instead of Color in item Selection and Hovering(mouse over) in Flex DataGrid. how i can do it ?
View 2 Replies
Sep 16, 2011
I have a DataGrid, and what I would like to do, is when a user clicks on a row to select it, check a certain condition, and if it's met prevent the row from getting selected and keep the old selection intact.
View 1 Replies
Jan 3, 2010
I have map of the world (in photoshop) where each continent is in separate layer and separate coloured. How can I make link in flash of each continent. I want mouse hover over the exact colour (continent). My problem is that mouse hover always over the whole selection box of object (whole rectangle).
View 1 Replies
Dec 30, 2009
i have map of the world (in photoshop) where each continent is in separate layer and separate coloured.how can i make link in flash of each continent. i want mouse hover over the exact colour(continent). My problem is that mouse hover always hover over the whole selection box of object.
View 0 Replies
Jul 21, 2010
How could i disable the selection color on single click and enable it just to double click.
View 1 Replies
Dec 15, 2011
I have a spark datagrid on a mobile application, I set the
interactionMode="touch"
and the dataGrid scrolling is good, I got some problems adding a selectionChange eventListener to it, because scrolling the dataGrid will automatically change the selection and instead simply scrolling it, the function binded will start...
How can I add the touch dalay before select the index, so if I scroll the grid the selection won't change, and it change only if I press the item without scrolling?
View 1 Replies
Dec 24, 2009
I can change the color of the label in Flex Builder, I can even BIND the color to a variable and that works, but I can't find the Color PROPERTY in order to change or reference it programatically! What is the ActionScript 3.0 code to change the font or color of a piece of text in a Flex RIA - or is caring in what color your text appears too bizzarre a request for a RIA? I wrote whole applications after just minutes of "learning" flex, how come it's taken me three days and I still can't change the color of my stupid label?
View 1 Replies