Flex :: Finding X,y Position Of A Datagrid / AdavancedDataGrid Row
Feb 27, 2010
I have flex advancedDataGrid (could use dataGrid if that works better, though i like my meta-column headers), and i want to have a component popup on top of a selected row.
The problem is, i can figure out how to reference an actual rendered row of a datagrid (rather than an item of the dataprovider) in order to get its position on the screen.
how to access a "row" of a datagrid, or at least get its position?
View 3 Replies
Similar Posts:
Mar 1, 2011
How to populate a flex datagrid from an Arraycollection without specifying DataGridColumn's individually. Is there any custom datagrid available where I can pass the datasource arraycollection and see the data populated in the output. Without knowing the structure / bluprint of an object is there anyway to find how many member variable that class have?
View 2 Replies
Sep 8, 2010
I have a custom <mx:DataGrid /> that is updated with data from a ColdFusion server every 60 seconds. I've noticed that every time the DataGrid updates and redraws the scroll position is reset to the top.
Is there a way I can preserve the scroll position for my DataGrid?
View 1 Replies
Feb 2, 2010
How we get global x,y position,when we are clicking in a datagrid cell.
View 1 Replies
Aug 22, 2011
I'm using the new Spark Datagrid for a project, but I must confess the scroller is annoying me a little bit, so I would like to have some control over it.
View 1 Replies
Nov 11, 2010
How does one find the position of a child movieclip within a parent movieclip relative to the stage? Whenever I refer to the position of the target movieclip, it gives me a number of what I'm not quite sure it refers to. I want to know the position of a an object as it is seen drawn on the stage
View 5 Replies
Feb 25, 2012
I'm often finding a need to get a stage-relative position of objects in my game, which are often buried several layers deep as children of children of children, etc, often with differently scaled/moved/rotated parents. The position i want isn't quite relative to the stage, but a main holder object i have on it called lvlHolder (see code below). I wrote a function to deal with it that recurses up the display list, accounting for each object as it goes, to get a global position. It's worked so far, but one thing it doesn't account for is rotation. I'm finding a need for that now, and i'm not sure how to account for rotation of objects, to rotate offsets from them,
My function is below. how i should enhance it to accomodate for the rotation of each parent object? Also any tips on optimisation would be good, as i'm using this a LOT (roughly twice per frame, per object, for physics calculations) I'm also wondering, in similar situations i've seen something related to transform matrices used
[Code]....
View 1 Replies
Dec 24, 2006
how do you find out in which position a certain value is in an array?
View 9 Replies
May 3, 2009
I'm trying to get the position of the mouse while it is stationary. For example, if the SWF loads and the mouse is already on the SWF, how can I detect it's position WITHOUT waiting for the user to move the mouse.
how to grab the mouse position when the mouse moves, just not how to obtain that info when it has not moved yet.
View 1 Replies
Jun 10, 2011
I have a pipe delimited string "Y|Y|Y|N|N". How can I find the position of first occurrence of N using code after processing the string.
View 4 Replies
Feb 22, 2012
How can I find a pixel position, based in its color, within a bitmapdata?Say, we have a path drawed (a movieclip), we make it a bitmapdata.The path´s color is red.How can I find a given pixel red, within that bitmapdata?
View 1 Replies
Jun 9, 2010
var array1:Array = new Array();
var array2:Array = new Array();
var obj1:Object = new Object();
array1.push(obj1);
array2.push(obj1);
How can I do this what command should I use?
//obj1's position in array1
//result: 0
//obj1's position in array2
//result: 0
View 1 Replies
Feb 14, 2010
I've added an eventListener to the COLLECTION_CHANGE event that is fired when the grid is finished resorting the items in its dataProvider, after the user clicks on a column header:MyType (myDataGrid.dataProvider).addEventListener(CollectionEvent.COLLECTION_CHANGE,onDataGridResort);
View 1 Replies
Mar 15, 2010
I am working on a problem since a week soon, but I still couldn't make it work as expected. I have a DataGrid which has HBox with a CheckBox an a Label as itemRenderer (see Code below). When I tap in to the Cell the standard itemEditor pops up and lets you enter the content of the label. Thats the standard behavior. I works fine except for 2 problems:
If I enter to much text, the horizontal srollbar pops up, and the cell is filled with that scrollbar. As you see I tried to set the horizontalScrollPolicy to off, but that doesnt work at all... I tried to do that for all the different elements, but the failure is still existent. When I have filled more than one row, there is an other mistake happening. If I tap on a row, the datagrid selects the one below that row. That's only if one line is already selected. If I tap outside the datagrid and then, tap at any row the itemEditor of the right row will show up... Is there anything now wright in the setup of my set data method?
package components
{
import mx.containers.HBox;
import mx.controls.CheckBox;
[Code]......
View 2 Replies
Mar 24, 2010
From this (normal dataGrid)
into this (horisontal data grid)
How to turn Flex MXML DataGrid into something like Horisontal DataGrid? (may be some how with Flash builder 4?)
Keeping all stuff DataGrid has like eating data from data provider sortind dragging - droping items etc
View 1 Replies
Oct 15, 2011
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]..
View 2 Replies
Jul 31, 2009
For poor performance reasons, the DataGrid will cache checkboxes and reuse them for different rows. If you have 50 rows, it won't create 50 checkboxes. It will create as many checkboxes at are visible, plus a few more for padding, and then reuse them as you scroll. This is why you need to explicitly manage their state. How can improve it ? How can fixed checkbox value ? i used checkbox like below But checkbox doesnot remembering the values
[Code]...
View 3 Replies
Feb 4, 2010
I am attempting to style the headers in a flex datagrid and I keep getting the warning:
Type DataGrid in CSS selector 'DataGrid' must be qualified with a namespace
What does this mean? I have gone through a bunch of tutorials and none of them have worked. It seems like changing a the colors in a datagrid should be relatively simple.
Here is a code sample:
<mx:Style>
.headerCustomStyle
{
fontWeight: "bold";
[code]....
View 3 Replies
May 13, 2011
in Flex I have something like that: [code]and dg is ALWAYS pointing at DataGrid (even if dg1 has name DataGrid_test and dg2 = DataGrid_test2) and finally action is made on my first DataGrid (DataGrid_test).[code]and search still points at ColorColumn :/ My problem is really easy- I just want to pass to search different dataGrid on each state.But still I don't understand why it doesn't work. My search function uses algorhitm Boyer-Moor for searching through dataGrid.dataProvider for some text. If it find something then it is pushed into new array and after passing whole dataProvider I colorize rows with searched word.
View 2 Replies
Jul 27, 2009
How would i know the item state, whether its open or closed through programming in flex.
I am using Accordian...
View 1 Replies
Jun 23, 2010
I have a component that changes its location based on other elements. I'm trying to find its x and y position at different intervals, so I tried compname.x and compname.y.
The x position seems to be working, but the y position is always 0. I need to play with localToGlobal or contentToGlobal or one of those conversions.
View 2 Replies
Aug 9, 2011
Recently I configured my BlazeDS to use Array instead of ArrayCollection for performance reasons. Additionally I adjusted my templates to generate Array properties.Everything wen't fine. All except one function that causes TypeError: Error #1034. These are being thrown before the result callback is called. It claims to have problems casting an ArrayCollection to Array. I removed the generated types to make Flex use Objects instead, but these did not contain any ArrayCollections. My question now is: How can I get the stack-traces of errors thrown in event-handlers? I allready added handlers for unhandledExceptions in all of my modules and they are called if errors occur in code triggered from user-interaction, but they don't seem to be able to catch stuff thrown by event-handlers.How can I track these Errors?
PS: The classes are:
package de.upw.ps.ucg.model.ucg.scheduler {
[Bindable]
[code]......
View 2 Replies
Oct 19, 2010
Since Flashbuilder does not support WCF over https, I am considering to use weborb remoting as alternative, but not really sure how flash is going to know weborb location, if they are sitting on different servers. Looked at destination, source fields, but not really find a field called url in remoteObject in Flex.
View 1 Replies
Feb 10, 2011
I want to find some color on flex page exists or not? For example
if(red color exists on page){
Alert.show("red exixts");
}else{
Alert.show("red does not exists");
}
so before writing this if else block,i need to find the red color(any where on flex page)
Note:- My page do not hav any images.with images i m getting the color.My page has a canvas and hboxes and diff texts with diff colors.
View 2 Replies
Apr 25, 2011
NativeApplication.nativeApplication.runtimeVersion returns the runtime version, but what is the best way to create a function which will return the major version? For version 2.6.0.19120, the function should return 2 only. This function should work even when AIR reaches version 10.
View 2 Replies
Dec 27, 2010
Any microphone action script code which indicates a progress bar when there is activity on microphone
View 1 Replies
Feb 11, 2011
I have the problem that when I use a component from an existing Flex Library in my AIR project, the values that should be loaded from the appropriate locale .properties file are not loaded. The values are always null.
I am using Eclipse and have created an AIR project that refers to the existing Flex Library (of which I have the source code). When I use a component from that library it calls the following code:
var _resourceManager:IResourceManager = ResourceManager.getInstance();
var res:String = resourceManager.getString('resources', str, params);
"str" and "params" have valid values but res is always null.The properties file is located within the assets directory of the Flex library. I am deducing that the properties file is not being loaded (for some reason). This Flex library works for other Flex projects so it has to be something about the way my project is set up.
I have my compiler settings set to: -locale en_US Is there something special that AIR projects need to do to ensure that they can refer to properties files?
View 1 Replies
Jan 31, 2012
Among all the options of the spark label, there is none that tells me the last character shown when the text is truncated, is there any way to accomplish this?
View 1 Replies
Aug 10, 2011
I'm trying to get the id of the target in showMe(). For example, when I click button or image panel's showMe() function executes first. Here I want to capture the button/image's id.
private function init():void
{
pnl.addEventListener(MouseEvent.MOUSE_DOWN,showMe);
}
[code]....
View 2 Replies
Jul 5, 2009
Is there any content management system (such as Joomla or Drupal) for Flash/ FLex websites?
View 2 Replies