Flash :: Check Spark DataGrid Cells' Contents Programmatically?

Jan 24, 2012

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


Similar Posts:


Flex :: Programmatically Set Edited Cell On Spark Datagrid?

Jul 24, 2011

What is the equivalent of editedItemPosition for the Spark datagrid?

View 1 Replies

Flash - Enable Tab Key Navigation On A Datagrid Where The Cells Are Custom Item Renderers?

May 26, 2011

This 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?

View 1 Replies

ActionScript 3.0 :: Combing CellRenderer Individually But Not Simultaneously For Cells In A Datagrid In A Flash Document

Nov 2, 2009

I 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]...

View 1 Replies

Flex :: Merge Cells In A Datagrid?

Oct 14, 2009

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

Flex :: DataGrid With Button In Cells?

Feb 15, 2011

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

ActionScript 2.0 :: Set A Size For My DataGrid Component's Cells?

Dec 20, 2009

How can I set a size for my DataGrid component's cells?

View 1 Replies

Flex - Vertical Align Cells In A Datagrid?

Sep 10, 2009

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

Flex :: Merge Cells In DataGrid/AdvancedDataGrid In Adobe?

Aug 2, 2011

I need to merge the cells as shown in the picture:

View 2 Replies

Flex :: Mxml - Change The Margins Inside Cells Of A DataGrid?

Nov 17, 2010

I 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]...

View 1 Replies

Flex :: DataGrid Editing Cells In Same Row Not Firing Collection Change Event

Mar 20, 2010

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 Replies

ActionScript 3.0 :: Change The Color Of The Header And Cells And Fonts In DataGrid Component?

Aug 31, 2011

How to change the color of the header and cells and fonts in DataGrid component.

View 2 Replies

ActionScript 2.0 :: Swf2jpg - Programmatically Export The Contents Of The Stage To A Jpg Format?

Mar 24, 2005

Is it possible to programatically export the contents of the stage to a jpg format? The goal is generating a starfield from a Photoshop png object over a background created in Photoshop inspired by van gogh starry night, then the result is exported in jpg of select sizes 800x600, 1024x768, 1280x1040. That can be downloaded from a browser or emailed for use as wallpaper

View 3 Replies

Flash :: Display Date In A Spark DataGrid?

May 20, 2011

I have a Datagrid that gets its data from an ArrayCollection of model "beans". The ArrayCollection Outcomes is a list of Outcome

[Code]...

View 2 Replies

Flex :: Programmatically Scroll To The End Of A Spark Textarea When A New Line Is Added?

Sep 6, 2011

The old method for the mx:TextArea no longer works. Specifically:

myMxTextArea.verticalScrollPosition = myMxTextArea.maxVerticalScrollPosition;

I've found this method for Spark but seems a bit kludgy:

mySparkTA.scrollToRange(mySparkTA.text.length-1, mySparkTA.text.length);

Is there a more straightforward way to do this?

View 1 Replies

Flex :: Spark ItemRenderer Not Showing Contents?

Mar 1, 2011

i have a spark list component and a corresponding custom itemrenderer:

list component:

<s:List id="albumImagesList" itemRenderer="the.namespace.for.XYZImageRenderer" useVirtualLayout="false" width="400" height="160">
<s:layout>
<s:TileLayout requestedColumnCount="5"

[Code].....

it's all fine and dandy, the data gets populated correctly and i verified that the data.image_path property arrives safe and sound inside the itemrenderer.

my only problem is: the image is not displaying. i am not sure if it doesn't render at all or if it's just not visible somehow.

View 3 Replies

Actionscript 3 :: Spark Container Not Hiding Contents Outside Of Its Body

Feb 7, 2012

This is what what my screen looks like:

It is composed like this :

First container <s:HGroup>(900 X 100)--top black area
Second container <s:Group> (900 X 475)--middle white area
Third container <s:HGroup>--(900 X 100)--bottom black area

If the project were done with Flex 3, the middle area would be an <mx:Canvas>.

Now suppose I have one BorderContainer(125 X 475) and name it middleContainerChild. It is located on the right side of the middle area. When I set its y postion to -middleContainerChild.height, it should be located at y = -475, outside of the container's body. And as you can see in the image above, it has been placed there.

But other than with <mx:Canvas>, the image still shows, even though it is no longer within the <s:Group>s body, and it is rendered "on top" of the <s:HGroup>.

See the image below for more clarification:

If I use <mx:Canvas>, it is hidden away properly, but if I use a Spark container (not only a group, but any Spark container), it remains visible.

View 2 Replies

Flex :: Write A DataGrid Programmatically?

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

Professional :: Update Datagrid Values Programmatically?

Jun 14, 2011

I'm new to Flash and PHP.  I'm using the FlashBuilder with PHP product.  I have a data grid that is connected to a PHP script that retrieves and updates data via the 'Enable Data Management' function.  If I modify data on the grid by using the screen and call .commit(), everything works OK.
 
However I would like to programmatically change some of the values in the data that underly the grid and have those changes get back to the update function in the PHP script when commit(). is called.  But I can't figure out how to change the underlying data. 
 
Here's the code I've tried: (the object that I pass back and forth to the PHP script is call MailPiece.  I want to set the WORKORDERNUMBER field on each row of the data)

[Code]...

View 1 Replies

Flex :: Blue Selection Of Datagrid Row Programmatically?

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

Flex :: Programmatically Update Datagrid Columns HeaderText?

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

ActionScript 2.0 :: Check Contents In Arrays?

Oct 10, 2007

I'm trying to do a memory game and the problem I have is I don't know how to check the contents in the arrays.[code]...

View 3 Replies

Flex :: 4 - Scroll Flex Spark Datagroup To Maximum Amount Programmatically

Jul 6, 2011

I have a spark skinnable component which contains a datagroup with images. The datagroup is scrolled by hovering the mouse over it. Everything works fine except one thing: after I change the datagroup provider, I need to scroll down automatically. The problem is the images are not loaded immediately after I set the provider so (contentHeight - height) does not yet represent the actual maximum scrolling position. Is there an easy way of telling the datagroup to scroll down as its content loads? Because the workaround seems to be not so straightforward. This is the code for scrolling(thumbnailStrip is my datagroup):

[Code]...

View 1 Replies

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

Remove Header From A Spark DataGrid?

Sep 2, 2011

How 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?

View 1 Replies

Flex :: Spark's DataGrid CalculateDropIndex Equivalent?

Mar 10, 2011

Is there any function (or any easy way to implement it) equivalent to calculateDropIndex for spark's DataGrid?

(using Flex Hero 4.5.0.19786)

View 1 Replies

Flex :: Spark DataGrid Cell Click?

Jun 18, 2011

I am searching for something like CellClick event on Spark DataGrid, or something alike.

Is there something like this in Flex 4.5, and how to get the data from the clicked cell ?

View 1 Replies

Flex :: Disabling Few Rows In Spark Datagrid?

Sep 1, 2011

Is there a way in spark datagrid to disable some rows programmatically, in flex 3, it could be done using the function mouseEventToItemRenderer this way:

override protected function mouseEventToItemRenderer (
event: MouseEvent): IListItemRenderer {
var listItem: IListItemRenderer;// = super.mouseEventToItemRenderer(event);

[Code]....

And then I implement the function disabledRow to return true or false depending on some condition, the condition that will specify if the selected item will be renderered or not. Is there a way in spark datagrid to do the same?

View 2 Replies

Flex :: Set A Tooltip Just On Header Of A Spark Datagrid?

Sep 21, 2011

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

Flex :: RendererAdd Function For Spark DataGrid?

Sep 23, 2011

Like we have rendererAdd function/hook for a Spark List which is dispatched when an itemrenderer is added to the container? Do we have any similar method/hook at DataGrid level also?

View 1 Replies







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