Flex :: Applying PaddingRight To Grid Column Not To Grid Header?

Mar 31, 2010

Whenever I add paddingRight to a column in the flex grid, it adds the padding to the header as well.Is anyone familiar with how I can add paddingRight just to the column and not to the header? Below is the column code where I was specifying the padding.

<mx:DataGridColumn width="60" headerText="Type" dataField="Grade" headerStyleName="headerLeft" textAlign="left" draggable="false" resizable="false" headerRenderer="GridHeaderRenderer" paddingRight="5"/>

View 1 Replies


Similar Posts:


Flex :: Determine Currently Sorted Header Column In Data Grid?

Jul 4, 2010

I want to know which header the user clicked on to give the currently sorted view. Is there an API in flex framework that I can use to achieve this? Hopefully I can get back a column index so I know how it is currently sorted.

View 1 Replies

Flex :: Top Horizontal Grid Line On Column Chart Is Not Applying Style

Oct 21, 2010

I have a Flex Column Chart that has a range of 0 - 6 on the y-axis. I have added the following block to change the default colour of the horizontal grid lines to black.

<mx:backgroundElements>
<mx:GridLines>
<mx:horizontalStroke>

[Code]....

This works fine for all but the horizontal grid line at the top of the chart (at y=6). If I change the maximum value for the y-axis to something different then this new max doesn't have the formatting applied (but all the others do).

how do I get the top line to be black like the rest of the grid lines?

View 1 Replies

Flex :: Datagrid - Display A Multi-line Column Header Using The Flex Spark Data Grid?

Apr 13, 2011

How can you display a multi-line column header using the Flex Spark Data Grid for Flex 4.5?

View 5 Replies

Flex :: Embed Image Into Grid Column?

Apr 5, 2010

Is there an easy way to embed an image into a flex grid column? Something similar to[url]...

View 1 Replies

Flex :: Data Grid Computed Column?

Mar 23, 2011

How to make a computed column in Flex datagrid? example:

<mx:DataGrid dataProvider="{ConsoleDetails}" id="datagrid">
<mx:columns>
<mx:DataGridColumn headerText="Absent Hrs" dataField="absentHrs"/>

[code].....

View 1 Replies

Flex :: ROLL-OVER Color In Advanced Data Grid Header

Aug 11, 2011

How can I change the rollover color of AdvancedDataGrid 's header? It's light-blue by default.I tried using a HeaderRenderer, but it does not help. There is a 2 pixel color border on the top and bottom of the header that I can't control.

View 2 Replies

Actionscript 3 :: Change Column Width In Flex Grid

Jun 23, 2009

I'm using a mx.containers.Grid to layout some data, and the last column is a set of checkboxes. MXML Code snippet:[code]Basically, I want the labels & text values to align however the Grid component sees fit. However, I'd like the checkboxes to be right-aligned. I've tried setting the width of the textValues to 100% and it does nothing. I don't want to use hard-coded pixel values/canvases/etc because it is important that this is easy to change/update.

View 2 Replies

Flex :: Advanced Data Grid:column Visibility?

Dec 7, 2009

when we use an advanced data grid, only when we click on the parent element the children details get populated in the corresponding columns, right?..SO now i have made the empty columns invisible(at design) now how do i make them visible at run time when the parent element is expanded..similarly once the columns are visible, how can i make them invisible again when the parent element is closed.

View 1 Replies

Flex :: Get Selected Column Value In Advanced Data Grid?

Jan 24, 2010

How to get value of selected column form Advanced datagrid whose visble propery is false .

View 1 Replies

Flex :: Insert HBox Between A AdvancedDataGrid Header And Grid Data / Content?

May 24, 2011

I need to insert a Box containing some text that appears between the grid header and main content and spans all the grid columns. I've been searching and experimenting (addChildAt()) but no luck so far. Is this possible to achieve?If not, is it possible to dynamically render the text in the header itself, below and spanning the column header text?

View 1 Replies

Flex :: Merge Column Headers In A Grid, Similar To Colspan In Html?

Aug 6, 2009

I am looking into achieving below two features in a flex grid( or advanced grid).

1. merge column headers ( as in group just the cells in the header row ).

2. add multiple ( say 2 ) headers to the grid.

View 2 Replies

Flash :: Flex Data Grid: Check Whether Item Renderer Displays Last Row In Grid

Feb 3, 2012

I'm currently working with the OLAPDataGrid component and got stuck at a relatively simple task: I want to style the last row of the grid differently from the rest, so my cell item renderer needs to know whether he's rendering the last row with content in the overall grid, including those rows currently not rendered because they are outside the visible grid space. AdvancedGridListData's rowIndex property only gets me the row index of the renderer relative to the range of visible grid rows, i.e. when I scroll down the grid, a data item with an index greater than 0 gets the rpw index = 0.

View 2 Replies

Flex :: Air - Get The Parent Of A Custom Grid Column Filter Editor And Open A Popup Window?

Jan 31, 2012

I am trying to figure out how to open a pop up window in my Air application, in a secondary Window, instead of the main application window.I am using the ReusableFX components, which include a custom DataGrid with filtering and other capabilities. The filtering feature displays a pop up window via PopUpManager when you click on the top of a column in the grid.

PopUpManager.addPopUp(this, FlexGlobals.topLevelApplication as DisplayObject);

The problem is that the pop up window opens in the main application - I am assuming because of the 'topLevelApplication' reference.So, I need a way to open this window in the current Air "s:Window". I am assuming I need a way to walk up : this.parent.parent or this.owner.owner - though I have tried that and it did not seem to work (it said null reference).OR, is there a way to get the current top most window / component (NOT the main application / window)?

Update:I decided to create a new project for the component, and add in the Air libraries. Now I am able to access the "NativeApplication.nativeApplication.activeWindow" call. That gives me the correct Air window. However, it does not seem to be working:

PopUpManager.addPopUp(this, NativeApplication.nativeApplication.activeWindow as DisplayObject);

My popup does not appear. I am assuming because "activeWindow" is not actually a DisplayObject?(so how do I get the DisplayObject if that's the case?)

View 1 Replies

Flex :: Resizable Grid Row And Grid Item

Sep 24, 2009

I have a mx:Grid component in my flex application. But I would like to resize it by clicking and dragging in the border. This component doesn't allow doing that.I want to put a panel in each gridItem of this Grid component and resize it.

View 1 Replies

Flex :: Choosing The "visible Column Selector" Mechanism For A Grid?

Nov 11, 2010

there's a need to select a mechanism, allowing user to hide/show columns in a DataGrid.One of suggested ways is adding a button (which looks like a column header, but with no column). When user clicks on it, the list of columns comes and user may select columns to hide/show. But is there any way to have such column in a grid (just a header with no column .. as example - you may see the grid in Mozilla Thunderbird)?

The other, less likely way, was the popup list, appearing when mouse hover the DataGrid. But this list would be used rarely. So, this flashing list would be just a headache for an end-user.

The ways with mouse-clicking .. I'm just afraid, that they would be left unnoticed and user would have a hard days while using a grids with a dozens columns.

Edit #1Maybe it would be better if I just provide a pic of this magical "header with no column", to escape confusion ..

Here's it .. there's a clickable column-header in a grid, but there's no column under it ..

Edit #2There's some area right above scrollbar in the dataGrid, it might be the right place for putting this functionality .. but it seems like I can't use it.

View 1 Replies

ActionScript 3.0 :: Flex Data Grid - Update Column With Variable (not From Data Provider)?

Jul 27, 2009

I have a data grid who's data provider is set to an XML object.

Code:
<mx:DataGrid id="streamMonitorGrid" dataProvider="{_data.stream}" height="100%" width="100%">

[code].....

View 5 Replies

ActionScript 3.0 :: Dynamically Add Column To Data Grid?

May 12, 2011

How dynamically add column contains checkbox to datagrid?[code]...

View 1 Replies

Flex :: Get Column Index Of Header Column In AdvancedDataGrid?

Mar 9, 2010

I want to know column index of header in AdvancedDataGrid when a user clicks on header - either left click or right click.

View 1 Replies

Actionscript 3 :: Calculating Column And Row Number In An Isometric Rectangular Shaped Grid

Jul 1, 2011

I'm trying to extend an isometric Flash game based on as3isolib. The game does only support diamond shaped grids but I have to implement the possibility to have rectangular shaped grids, too.

[Code]...

View 1 Replies

ActionScript 2.0 :: Create A Simple Multiplication Grid Where Children Will Fill The Grid?

Oct 9, 2009

I need to create a simple multiplication grid where children will fill the grid. Its an empty grid at the begining, when they start the time start as well.Its a grid of 10 x 10. when they enter the last number, the grid should show what they did wrong and the time they spend. It's an idea of how it could work but if anyone has something that looks like this.

View 6 Replies

ActionScript 2.0 :: Make A Square Grid Of Fixed Side Length But Varying Grid Number Using Code?

Jul 5, 2011

I want to make a square grid of fixed side length but varying grid number using code.That is, the number of grids should be specified by the user (say 3*3) and after pressing a button, the stage should be broken into 3*3 grids.I don't want any code, just a method on how to do it. I have tried it by using simple loops but the method just fails for no reason I can figure.

View 5 Replies

ActionScript 2.0 :: Grid Thumbnail With Dynamic Grid Lists

Mar 19, 2007

I really like the thumbnail gallery for its simplicity and beauty. But I would like to ad or vertical scroller (I'm unable to find it here too, maybe I'm blind, just I'm more at the end of my seeking options) or a make a grid thumbnails, that will show 2 columns of thumbs and 5 pictures in each columns, then under the 2 columns i would like to ad a sort of arrow or button that if my gallery have more then 10 pictures it will go on the next thumbnail list. I'm not looking for any extra fading effects or special movements. Just would love to have a single thumbnail grid on side, with option to have lists of thumbnails by 10 if there is more then 10 pictures or so.

View 14 Replies

ActionScript 2.0 :: Accessing Grid Spaces In A Grid?

Jun 24, 2008

I'm building a small editor that allows users to place electrical components onto a grid so that they can see how electricity works. I have built a grid using an array and for loops and attach movieclips dynamically to that grid. What I want the moviclips to do is to look in the four spaces either side of itself i.e. up, down,left and right.I have managed to pull the grid coordinates out of the grid which enables me to tell the clip which grid space to look at but have been unable to successfully get the code to work.Here is my code:

myGrid = [[1,1,1,1,1,1,1,1],
[1,0,0,0,0,0,0,1],
[1,0,0,0,0,0,0,1],[code]....

View 1 Replies

ActionScript 3.0 :: Dragged Object Should Snap To The Grid If The Distance Between The Object Bounds And A Grid Line Is Less Than 5px

Jan 16, 2012

I'm trying to code the snap to grid functionality. The dragged object should snap to the grid if the distance between the object bounds and a grid line is less than 5px. I found a way to do it if the object's rotation is 0 but it doesn't work if I rotate the object. I need a different approach. Can you point me into the right direction with the algorythm or any source code?

View 3 Replies

ActionScript 3.0 :: Make Own Grid And Perform A "snap To Grid" Effect?

Jul 28, 2010

I am trying to create a puzzle like game (a chinese puzzle game called tangram). I am wondering what kind of functions should I use to create a "triangular" grid i.e. something similar to this ?[URL] What should I do to make the movie clips to perform the "snap to grid" effect to this grid?I have tried to draw my own grid and used the "cacheAsBitmap" function to implent it, however it doesnt seems to be working.

View 6 Replies

Actionscript 3.0 :: Make My Own Grid And Perform A "snap To Grid" Effect?

Jul 27, 2010

I am a newbie in flash and I am trying to create a puzzle like game. I am wondering what kind of functions should I use to create a "triangular" grid i.e. something similar to this ? [url]... What should I do to make the movie clips to perform the "snap to grid" effect to this grid?I have tried to draw my own grid and used the "cacheAsBitmap" function to implent it, however it doesn't seems to be working.

View 4 Replies

Flex :: Ability To Add Buttonicon In Column Header Of Datagrid?

Aug 4, 2009

I 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 Replies

ActionScript 3.0 :: IsoMetric Grid - Dynamically Draw Out An Isometric Grid

Jun 11, 2011

I'm trying to dynamically draw out an isometric grid but I'm hitting a few problems, currently I'm using a matrix transformation to get the grid to look more isometric that tile based but it has it's problems so I want to add the grid with out using the matrix transformations. currently I have..

[Code]....

I tried to draw it out using Sin ,Cos and Tan functions to try to set the coordinates but it didn't behave like I had expected,

View 9 Replies

Flex :: Datagrid Different Fonts For Column Header And The Text In The Corresponding Cell?

Aug 4, 2009

For a flex datagrid : How do I have different fonts for a column header and the text in the corresponding cells?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved