advanceddatagrid

How do I get a Flex AdvancedDatagrid to display just one row?

本秂侑毒 提交于 2020-01-16 05:16:05
问题 I have an AdvancedDatagrid, whose dataProvider is an ArrayCollection that contains 1 row of displayable stuff. Flex continues to display about 6 rows, the top one filled, the rest blank. I've set the rowCount="1", with no luck. 回答1: I actually ran into this issue the other day. It turns out I was setting the height of the AdvancedDataGrid to 100%, which overrides the rowCount property. If you check out the documentation, it says "If the height of the component has been explicitly set, this

HIghlight row in red border in AdvancedDataGrid in Flex 4

我的梦境 提交于 2019-12-25 18:28:50
问题 I want to highlight the row in red border in AdvancedDataGrid without selecting the row. My selected item is different from the highlight row. Please see the following image : My selected index is where Territory is Nevada but my highlighted row is different(in Red Border) based on some condition. So please tell me how can i implement it. 回答1: You will have to extend mx.controls.advancedDataGridClasses.AdvancedDataGridGroupItemRenderer and add the condition + visuals to add the red border

AdvanceDataGrid nodes collapse on refresh

二次信任 提交于 2019-12-24 20:03:35
问题 I have an AdvancedDataGrid which Im attemping to update with data from a web service that I poll once very 10 seconds. Im using a HierarchicalData object to provide data to the grid. The update seems to work fine, except that on each update, any nodes that were expanded are collapsed when the grid is refreshed. Stranger still, when I dig down into the bowels of the thing and look at the contents of the HierarchicalCollectionView that backs the grid, I can see that the openNodes property

Selection in a ComboBoxEditor change the row selected in DataGrid

 ̄綄美尐妖づ 提交于 2019-12-24 17:29:27
问题 Here is a good problem : I've got an AdvancedDatagrid with Combobox as ItemEditor (until there, no problems ...). This ComboBoxEditor get this behavior : selection = close editor BUT when I click on a value in the ComboBox, it selecte it and close as wished, but the click also put the selection in the row of the datagrid below, and then open the editor of this row. This comportment appear only with Internet Explorer (8 & 9) Any idea why it's like this with IE, and more important, how to

Set alternate color for AdvancedDataGrid - one for parent node and other for child nodes

橙三吉。 提交于 2019-12-14 03:49:29
问题 It seems there are various ways to set the background color for a datagrid. See: How to dynamically change background colour of datagrid row? See: Setting background color for datagrid row in Adobe Flex I have a advanced datagrid with HierarchicalData as the datasource. For this, i have to set alternate background color one for the parent node and other for the child nodes. <mx:AdvancedDataGrid id="electionGrid" alternatingItemColors="[#449933, #994433]" width="100%" height="70%"

Flex AdvancedDatagrid populating with groupingCollection based on xml

泄露秘密 提交于 2019-12-12 03:54:12
问题 I'm currently trying to populate an flex 3 AdvancedDatagrid with xml received from a HTTPService with id="produktMatrix_data" . The layout is as follows: http://pastebin.com/NqFqgj86 The result should look like: The further rows like KID, M.., etc. will be populated by other sources, be hardcoded, or by user input and are beyond scope of this question. My code for the AdvencedDataGrid is as follows: <mx:AdvancedDataGrid dataProvider="{matrixProvider}"> <mx:columns> <mx:AdvancedDataGridColumn

Flex advanced datagrid styling

早过忘川 提交于 2019-12-11 13:24:40
问题 I'm using an advanced datagrid in a system I'm building. the design PSD from the designer includes a special background on rollover. So, I need the background of the cells in a row to get the background from an image, only when the mouse rolls over a specific row. is this even possible? can a row get the background from an image (CSS) 回答1: There is a method available in DataGrids (and Lists) called drawRowBackgrounds() that is responsible for drawing a simple highlight into a row in response

ItemRenderer height (and height changes) not reflected in AdvancedDataGrid row

寵の児 提交于 2019-12-11 05:18:15
问题 I have an AdvancedDataGrid with variable row height set to true. I have written a cutsom item renderer based on the DataGroup spark component. Each row in the grid has multiple entities to display, the x position and width of the entites are based on the data of the entity itself. I have a custom layout written for the DataGroup that measures and posistions each entity based on its data. Each entity in each row can either truncate or not truncate its label. When the labels are not truncated,

wpf DataGrid of UserControls

百般思念 提交于 2019-12-08 14:45:25
问题 I am trying to have a DataGrid that shows a user controls in each cell of it's rows. highliting that the DataGrid have to be dynamic because columns count is dynamic for each case of use. In my xaml code (XAML) i have this as a declaration of the DataGrid : <Grid Grid.Column="1" Margin="0,10,0,0"> <DataGrid AutoGenerateColumns="False" x:Name="planningTable" FrozenColumnCount="1"/> </Grid> My user controle look like this (the UserControl is already done and it works perfectly): As a result of

How to merge cells in DataGrid/AdvancedDataGrid in Adobe Flex

痴心易碎 提交于 2019-11-30 14:43:21
I need to merge the cells as shown in the picture: Flex (in my understanding) does not directly provide this. You have a few options. Either way, you may need to arrange your data in a hierarchical model. (Parent with 3 children appears to describe your question) The first option I see would involve directly declaring your data as hierarchical to the advanceddatagrid. If you search for hierarchical advanceddatagrid you should be able to find tutorials online. Alternatively, you may desire to always have the data show, and not only when you expand the parent. In this case, you will still need