Flex :: Advanceddatagrid - Access Component Id's Generically?
Jul 16, 2010
I have some generic functions like copy, paste,etc in an AS file. I want to use them for editing data present in different mxml applications embedded in one application. If I pass the child's component id as a parameter of a function in one of the events, I get the value as either null or the parent app name. But I want the id of the child's component to access the values.
[Code]...
View 1 Replies
Similar Posts:
Mar 4, 2011
I Need to catch an event in itemrenderer component dispatched from its parent i.e an advanced datagrid. How could i achieve it
View 2 Replies
Sep 3, 2009
I have two components. One is called "InsideComp" and one is called "OutsideComp". OutsideComp has InsideComp as one piece of its component, and in my main MXML file, I have embedded an instance of OutsideComp. How do I access a public variable of InsideComp within my main MXML file?In Actionscript, I could just do something like:OutsideComp.InsideComp.valToChange = 5; But I dont know how to do it in MXML. I know this is probably an easy question.
View 4 Replies
Sep 21, 2011
I would like to bind two components with out binding and which resides in different MXML.for eg: A.mxml has textinput and B.mxml has a combobox when choose one item in B.mxml selected item should be display in A.mxml textinput.
View 2 Replies
Jul 29, 2011
I have a component with a public variable declared
[Bindable]
public var mnuSource:String;
When I extend this component, I can reference mnuSource (it compiles) but Runtime complains about the property not being accessible (error 1056).
How do you modify / declare component properties so they are actually available to other components?
View 2 Replies
Dec 29, 2011
how I can access to the row data of my advancedDataGrid, I don't have any item Render set , but I do have data provider and dataField set for my grid, I need to check if the grid has been filled with data or not? that is why I need to access to data in the rows, to see if the rows are empty or not?
View 1 Replies
Sep 21, 2009
I have two mxml files. one is main that is application tag mxml file and another is my mxml component file. I have a viewstack in my main mxml whose id is, say, "mainViewStack". Now I want to set selectedChild property of "mainViewStack" from my mxml component file. [code]...
View 4 Replies
Oct 9, 2009
I have a datagrid in my mxml file, say, samp.mxml.
<mx:DataGrid id="taskDataGrid" dataProvider="{initDG}" variableRowHeight="true"
editable="true" width="100%" paddingBottom="1" paddingTop="1" height="55" >
<mx:columns>
[code].....
View 3 Replies
Jun 9, 2010
I have a datagroup where I use a custom itemRenderer with a datagrid inside. What I want is to access each datagroup's itemRenderer's datagrid and get it's dataProviderAll I know is that you can access the ItemRenderer by using myDataGroup.getElementAt(index)
View 1 Replies
Jul 18, 2010
I have a main application which has an int variable declared. I want to access this variable in another component which is present in another package. How can I do this?Main.mxml (default package)
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
[code].....
View 4 Replies
Oct 21, 2010
I need to access topBox's grandchildren and determine whether they're buttons or not. This function belowgrabs topBox's immediate children which are the HBoxes. How do I go one level lower to topBox's grandchildren? Or is the only way to do this is to run this function on each HBox?
for (var i : int =0; i<topBox.numChildren; i++){
var child : DisplayObject = topBox.getChildAt(i);
var myButton:UIComponent = child as UIComponent;
[code].....
View 1 Replies
Oct 30, 2010
I have done this many times but can't remember the syntax for the life of me and am obviously asking Google the wrong questions.
[Code]...
I can't give the TitleWindow an id as it's the top level component. How do I access the TitleWindow component from inside the script tag, the 'this' keyword will give me type Object, which one of its properties will give me the title window?
View 1 Replies
Dec 6, 2010
How do I get "close" button to run runFunction() from within component to outside declaration? FxGlobals.topLevelApplication doesn't seem to be working for this.
<fx:Declarations>
<fx:Component className="MyNativeWindow">
<s:Window>
[Code]....
View 1 Replies
Jul 22, 2010
This is the setup. I have created a timeline with a playhead. When my playhead is dragged I would like the timeline to scroll with the drag.
So far, the only way I can do this is by setting clipAndEnableScrolling to true. But in this case I lose the scrollbars(not to mention the impact on my view). So what I would like is to set this property to false and dynamically affect the horizontal scrollbar's position, in other words enable scrolling without the clipping.
View 1 Replies
Sep 11, 2010
How can I Access Items Selected in a Component from the Main App I've got a component that has a listControl and a couple of RadioButtonGroups. I need to access the selected items in the main application. What's the best/simplest way to create and access the array of selected items. So, the user clicks the button to confirm the selections and then I need to access those selections in the main app. Is there a way I can use a public var to build the array? Another idea?
<mx:Tile direction="horizontal">
<mx:Box>
<mx:Label text="Year" fontWeight="bold"/>
<mx:List id="myYear" >
[code]....
View 2 Replies
Sep 18, 2010
I have a public variable set within fx:Script tags in a parent component that I'd like to access directly from a child component. How can I do this? I don't want to pass the variable to the child component (I know how to do this and am currently using this approach). Following is a simplified version of the mxml:
Note: SimpleComp is an HBox with a couple of lists.
<mx:Accordion>
<comp:SimpleComp/>
</mx:Accordion>
View 4 Replies
Dec 20, 2011
Is it possible to access a declared component as an IFactory within an MXML class? I've used this style of declaring factories many times for Skin Parts, but I've never figured out how to access those factories from within the MXML.
Here's an example of what I would expect to work:
<fx:Declarations>
<fx:Component id="labelDisplay">
<s:Label fontSize="12" fontWeight="bold"/>
[Code].....
View 2 Replies
Sep 6, 2009
How can I Access Items Selected in a Component from the Main App
I've got a component that has a listControl and a couple of RadioButtonGroups. I need to access the selected items in the main application. What's the best/simplest way to create and access the array of selected items. So, the user clicks the button to confirm the selections and then I need to access those selections in the main app. Is there a way I can use a public var to build the array? Another idea?
<mx:Tile direction="horizontal">
<mx:Box>
<mx:Label text="Year" fontWeight="bold"/>
[Code]....
View 2 Replies
Feb 18, 2010
i'm trying to access an mxml component from my external as file. e.g
main.mxml:
[mx:text id="myText" />]
file.as:
var mainM:main = new main();
mainM.text.visible = true;
i get the following error:
[TypeError: Error #1009: Cannot access a property or method of a null object reference]
View 2 Replies
Jun 1, 2010
I have an Item Renderer having HBox. Now I want to add child in that HBox from my application file using addChild method. Any way around for the same. I am not able to access the properties of HBox inside the item renderer.
View 1 Replies
Nov 25, 2009
how to access the stage from within component code. (I am very new to ActionScript)
Here is the cut down code of the main application entry point:
Code:
package {
import flash.display.Sprite;
public class Main extends Sprite {
[Code]...
I need to access the main stage to add a mouse up event listener.
View 1 Replies
Jun 8, 2011
I have a custom component which contains many promptingTextInput controls. When i click a button, I want the text field of all the promptingTextInputs to become blank. (Note: I have around 60 promptingTextInputs) How do i access the controls dynamically ? I am looking for a flex equivalent of $('input[type=text]') (like in jquery).
View 1 Replies
Sep 23, 2010
I'm trying to find a generic way to select everything on the stage, because when I leave a frame, I want everything to fade out. But the user will be leaving multiple frames, so I would like to do it without specifying various objects depending on what frame they're on. I realize there are a lot of ways to "skin this cat", and I will fall back on something else if this isn't possible.
When I try this, I get an error, "undefined *".
Code:
stage.*.alpha = 0;
View 2 Replies
Oct 1, 2010
Is there a way to generically remove an object from an array? (maybe not using array.filter or creating a new array)
Example:
var arr:Array= new Array();
//create dummy objs
for (var i:uint=0; i < 10; i++){
var someObject:SomeClassObject = new SomeClassObject();
[Code]....
View 3 Replies
Oct 23, 2008
I know that I can't asisgn text generically to a dynamic text box like this:
this["blah"+sumNum].text =
But is there a method that would work similarly to this?
View 5 Replies
Feb 12, 2012
I'm using Flex 4 and I need to render the data that resembles HTML Table with row span in a Flex component.My inclination was to use a DataGrid but I believe that rowSpan is not supported for that component. I looked at the AdvancedDataGrid but the user does not want to have a tree-structure in any of the columns. Looking to see if there are any hints/tips for modifying the DataGrid or AdvancedDataGrid to produce an "HTML Table with rowspan" look.
View 1 Replies
Feb 26, 2011
I have implemented drag and drop between 2 AdvancedDataGrid, but the default behaviour from Flex displays the row data during the drag using the grid item renderer showing all 5 columns.
Instead, I would like to display an icon / image or my own custom item renderer during the drag and drop.
View 2 Replies
Sep 2, 2010
Is there any way to detect if AdvancedDataGrid itemClick event is actually caused by the user dragging? I'd like to take action on click, but ignore drag.
View 1 Replies
Aug 5, 2009
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.
View 3 Replies
Jun 3, 2010
after multiple Selection in a advanced datagrid, I want to check if the clicked row, was already selected. Anyway my idea below (in the nested if clause I want to check if the newly clicked item's processing data is already in the added Array Collection) is not working, but I assume there must be a better way to differiante if an click was made on a already selected row.
model.processingData = out;
if (model.selectedIndices.length > 1){
//check if item already added
[code].....
View 1 Replies