ActionScript 3.0 :: FLEX - Using NumericStepper In DataGrid?
Mar 19, 2008
I have this code for uploading files to a PHP-script. It works fine when I place my NumericStepper(id="sida") outside the DataGrid but when I try to put it inside, Flex can't find the property "sida". What code goes where to solve this, anyone?
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:com="*" headerHeight="8"
[code]........
View 2 Replies
Similar Posts:
Sep 30, 2010
I have a datagrid in Flex 4 with a NumericStepper as editor for a numeric value. I can set pre-defined maximum and minimum values for the NumericStepper, but I need to be able to have different limits for each row in the DataGrid. How can I do this?
This is the code for the datagrid:
<mx:DataGrid x="0" y="45" width="272" height="525" dataProvider="{dp}" variableRowHeight="true" editable="true" id="equipmentDG" verticalAlign="middle">
<mx:columns>
[Code].....
but now I get a StackOverflowError when I click on the cell to change the value. I posted a new question regarding that here: [URL]
View 1 Replies
Oct 1, 2010
I have a DataGrid with a NumericStepper as the item editor for one of the columns. The numeric stepper is supposed to get its max an min values from the data for each row. My MXML is like this:
<mx:DataGrid x="0" y="45" width="272" height="525" dataProvider="{dp}" variableRowHeight="true" editable="true" id="equipmentDG" verticalAlign="middle">
<mx:columns> [code].....
View 1 Replies
Jun 15, 2011
Is there a way to make NumericStepper shows leading 0 to numbers which is below 10 ?
(like 01, 02, 03 ... 09, 10, 11)
View 2 Replies
Mar 9, 2010
I have a NumericStepper declared as a UIComponent:
<![CDATA[
private var component:UIComponent;
component = new NumericStepper();
]]>
I need to change the .maximum value of the NumericStepper but due to the UIComponent not having a .maximum property the following code fails with the error: 1119: Access of possibly undefined property maximum through a reference with static type mx.core:UIComponent.
component.maximum = 11;
how would I define a property in this scenario?
View 2 Replies
Sep 1, 2011
I am trying to use the NumericStepper component in Flex and would like to give its textField (not just the whole thing) an id but not sure how. I have already given an id to the NumericStepper itself but would like to give an id to its textInput field.
View 1 Replies
Dec 19, 2011
I want to restrict my NumericStepper so that you can't type invalid characters into it (like a comma). I'm trying this, and it works:
<s:initialize>
stepper.textDisplay.restrict = "0-9 - .";
</s:initialize>
<s:NumericStepper id="stepper" />
Except the negative sign can't be typed anymore, even though I specify it. If I do it directly on a TextInput, it works:
<s:TextInput restrict="0-9 - ." minimum="-10" />
Why doesn't this work?
View 1 Replies
Jan 16, 2012
I have the following NumericStepper:
<s:NumericStepper id="estimertTidCell" value="{isNaN(hostComponent.estimertTid)?0:hostComponent.estimertTid}" stepSize="0.5" maximum="5" change="hostComponent.estimertTid=estimertTidCell.value"/>
When i set the value to e.g. 1.5 through the NumericStepper and store the value, the alert in the following code correctly displays 1.5:
private var _estimertTid:Number;
[Bindable]
public function get estimertTid():Number {
[code]....
Problem: My problem is that once the NumericStepper refreshes, or reloads the variable, it displays 2 instead of 1.5, or 4 instead of 3.5 etc. Anyone got any ideas of what is causing this behavior? I would think that by setting the stepSize=0.5 it would correctly display those decimal numbers.Additional information: When i display the same variable in a spark Label, the value is correctly displayed as a decimal number.
View 1 Replies
Jan 21, 2011
When using the NumericStepper I want to force the user to only be able to edit the value using the NumericStepper's up and down arrows. I do not want the user to be able to type in a value directly. How can i do this in flex 4?
View 2 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
Feb 1, 2009
i am having problems with setting the default value of the numericstepper. what is happening is that each time i change the value of Ath in the numeric stepper then change the frame the Ath value changes to it's max value. this happens with all of the numericsteppers that i set a default value with using actionscript. all relevent code is bellow along what each frame is for/does
[CODE].....
View 1 Replies
Jan 27, 2010
I have a RadioBtnGroup with (8) RBtn, and also One NumericStepper which uses the change property to address a changeHandler, and to count appropriate values up or down. At the moment I can only select the first RBtn and the changHandler' associated with it, but now I'm trying to find a way to use the change property of the NumericStepper multiple time (as per One RBtn to One changeHandler) within a switch or case statement ??? To try to avoid to use more than the One NumericStepper. Note: I do have to use One changeHandler per RBtn! as all the values from one to the other are different.
View 1 Replies
Mar 23, 2009
I was just wondering: When using the NumericStepper-component, is it possible to have a range from say 100 to 200 with all integer values in bewteen (i.e. stepSize = 1), but have the value increase/decrease by another value (e.g. 5) when pressing on of the arrows?
View 2 Replies
Sep 14, 2009
I need to set the text value of the ComboBox and numericStepper when an item in a list is pressed. I understand that the value of the ComboBox and NumericStepper is read only. How can I force these components to show the value that I want?
View 3 Replies
Feb 3, 2010
I have a NumericStepper in my stage, and I have a Keyboard listener which listens for pressed keys.The listener works fine until I change the value in the NumericStepper.I think it's the textField in the NumericStepper that ruins it.
But i've tried
myNumericStepper.textField.enabled = false
and
myNumericStepper.textField.selectable = false;
But nothing works.
View 2 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
Feb 6, 2010
I have a keyboardEvent which listens for pressed keys. I also have a NumericStepper. If I change the value in the NumericStepper, the keyboardEvent stops working (I think the reason is that the textField in the numericStepper, or the numericStepper itself, gets active). So, I've tried alot of things.
numericstepper.textField.enabled = false
numericstepper.textField.selectable = false
numericstepper.textField.editable = false etc...
But nothing seems to work.
View 3 Replies
May 14, 2010
I have a numericStepper that has a change" listener that works just fine when using the up/down keys on the stepper (I can retrieve the value of the numericStepper). However, if the user manually types in a value and then clicks away from the stepper,From researching the web, I know that the "change" event is only activated via the up/down arrows on the numericStepper OR when the user presses the enter key in the numericStepper text field.y problem, I cannot retrieve the manual value typed into the numericStepper.The ".value" property always contains the last value set by the up/down arrows or pressing Enter
View 8 Replies
Dec 14, 2010
I want to customize the images on increment and decrement buttons in spark numericstepper and I trying the following in my css file. But it doesnot work for spark numericstepper.
s|NumericStepper
{
downArrowDisabledSkin: Embed(source="assets/componentImages/downArrowDisabledSkin.png");
[Code].....
View 1 Replies
Mar 31, 2010
Two questions concerning the numericStepper component and I think they both have to do with how to access the textfield part of the component.
1. How do you change the color of the textfield border in the numericStepper component.
2. I'm using the numericStepper to step up/down by increments of .25 (25 cents) and would like it to always show 2 decimals. But when it reaches a whole number (like 25) it will not show the 2 decimals. Do I treat this like a textfield to force the text to have 2 decimals? And if so, how do I access the .text?
View 1 Replies
Aug 11, 2011
I have a TabNavigator, and each tab is a Module. One of the modules is labelled Units and the full code of the module is posted in this post. There are several problems:
1) Forms are not populated with data from the datagrid selection.
2) Selecting a row and clicking delete gives the very-common error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
A trace on the valueObject unit within the selectionChangeHandler function gives NULL. Why? Note: In other modules (other tabs of the TabNavigator), I have DropDownLists populated with units. This means that the valueObject Unit is defined in the other modules. However, valueObjects should be private to modules, and not shared.
[Code]....
View 1 Replies
Feb 4, 2011
i have a problem using the itemRenderer functionality. When using an ArrayCollection the visible Data in the DataGrid using the itemRenderer will be rendered just fine. But if i start scrolling the entries are repeating in the cells using the renderer. The cells are not filled with date according to the id. What mistake i'm doing here.
I read a lot of the explainations like:
[URL]
here is the code for the set data function (itemRenderer is extending HBox):
override public function set data(value:Object):void {
_data = value;
if(data!=null)
[code]....
View 1 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
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
Nov 3, 2009
I have a datagrid which is editable and I need to send that back to the database via a CFC for insertion into the database after all the editing is complete. Dumping the array collection to cfdump tells me that I have an array with items and a structure but i cannot understand how to "loop" through each and insert into the DB.There seems to be very little written which actually works! My MXML and CFC are below but give me the error of "You have attempted to dereference a scalar variable of type class coldfusion.runtime.Array as a structure with members." -which is nice
[Bindable]
private var getconsent:ArrayCollection = new ArrayCollection([
{LocationName:'Service A', Contact: 'Bob Jones' },
[code].....
View 3 Replies