Actionscript 3 :: Disable Editable/selectable For TextInput Inside Of A Datagrid?

Feb 16, 2012

I am currently trying to disable the selectable / editable / or change the textInput to dynamic to get my desired result.I've got a custom datagrid with dropdowns and text input areas. However, if there is no data in my Model # column, I do not want to allow for any entry in the corresponding PurchasePrice cell.

col1 = new DataGridColumn("Model");
col1.headerText = "Model #";
c2.consumables_dg.addColumn(col1);

[code].....

View 1 Replies


Similar Posts:


Actionscript 3 :: Disable Auto-save In Editable Datagrid Flex

Jun 17, 2010

I have an editable datagrid, whenever I make a change it automatically gets saved. How can I disable this? So the changes gets saved only when I click on an external save button.

View 1 Replies

Flex :: Actionscript 3 - Disable Automatic Sorting In Editable Datagrid?

Mar 8, 2011

I have an editable datagrid. If sorting is applied by clicking any header of datagrid, it works fine. But after that, if data values are changed in any row of datagrid, sorting is applied automatically. How to prevent from this behaviour? i.e. sorting should only be applied if user clicks on any header of datagrid and sorting should not be applied when user modifies data in grid.

View 1 Replies

Flex :: Disable Tooltip On Checkbox Inside Inline Renderer On DataGrid?

Feb 3, 2011

I'm trying to remove the tooltip from the checkbox inside an inline itemrenderer in a datagrid but I still get the tooltip box but with nothing in it. I want the tooltip box removed completely.[code]

View 2 Replies

Flex :: Disable Scrollbar - Thumbs Visible But Not Selectable

Feb 18, 2011

I have a canvas with a scrollbar and I would like to disable the scrollbar in some way that keeps the thumb visible, but not selectable. I just want to let the user know that there is more information below, but I do not want to let him use the scroll to move down(this will be done with the movement of the arrows). I tried using the properties enabled but it does not work.

View 1 Replies

ActionScript 3.0 :: Disable Editable TextArea Component?

Nov 14, 2010

I have a TextArea component in a flash document, and this TextArea is loading text from a .txt file.

However, when you're viewing the textarea in a webpage, you can not only select the text that has been loaded into the textarea, but you can also delete the text written there, like it's a word document or something.

Is there any way I can disable this?

View 3 Replies

Flex :: Disable Carriage Returns Within An Editable TextArea?

Aug 2, 2011

I am simply wanting to stop a user entering carriage returns in a TextArea. I have been experimenting with the 'restrict' property in the TextArea but cant seem to work it out.I have the following code:

<mx:Canvas id="cvs1" label="Panel 1" width="100%" height="100%" creationComplete"addEvtListnerOnPlaceText()" backgroundColor="#FFFFFF">
<mx:TextArea id="txtP1T1" x="10" y="176" text="{placeName}" width="210" textAlign="center" color="#DC0000" restrict="this is where I need some help"/>
</mx:Canvas>

I've now managed to get something working:

private function addEvtListnerOnPlaceText():void{
txtP1T1.addEventListener(KeyboardEvent.KEY_DOWN, onKeyEventDown);
txtP1T1.addEventListener(KeyboardEvent.KEY_UP, onKeyEventUp);

[code]....

The only issue now is that if you hold return down, it clears the first carriage return and then keeps adding as long as you hold it down. I need a way to stop this happening without just losing focus on the text area.

View 1 Replies

ActionScript 3.0 :: Bug In HorizontalScrollPolicy And Editable In Datagrid?

Dec 1, 2008

I have a possible bug for datagrid in cs4 (as3). The scenario involves having horizontal scrolling, good number of columns and editable columns.

The following codes basically layout that particular scenario.

The bug is the edibility of columns on the far right. If you click on them to try to edit them, another column on the left of it would become editable instead.

View 2 Replies

Actionscript 3 :: Flex: Row Index In Datagrid When 'selectable' Is Set To 'false'

Mar 2, 2011

It would be an easy question, but property 'selectable' is set to 'false' and therefore selectedItem is always null.

In each row I have 3 buttons. When I click a button, I need to extract data corresponding to clicked row.

View 2 Replies

ActionScript 3.0 :: Get An Editable Datagrid To Teach Subtraction?

Aug 21, 2009

I need an editable datagrid to teach subtraction. I tried

aDg.setStyle("alternatingRowColors", ["0xF0F0F0", "0xFFFFFF"]);

View 2 Replies

ActionScript 1/2 :: Hitting ENTER In A DataGrid Editable Cell?

Jun 9, 2009

Here's a question for you. I have a dataGrid that I want to be able to edit only when the user clicks on a particular button. When this happens, I make the dataGrid editable and I make that particular column editable. After the user modifies the cell's content and hits ENTER, I want the edit cell to close and the dataGrid to once again become non editable. Here's the code in my Key.onKeyUp listeneif(Key.getCode() == Key.ESCAPE || Key.getCode() == Key.ENTER){  my_dg.getColumnAt(2).editable = false;  my_dg.editable = false;}If the user hits ESC, the edit box closes correctly. If he hits the ENTER key, the edit box remains visible until he hits ENTER once more. Only then does it disappear

View 3 Replies

Actionscript 3 :: ItemFocusIn Not Working On Non-Editable DataGrid In Flex?

Apr 17, 2010

I realize that ItemFocusIn is somehow only applicable to editable datagrids in flex,nevertheless I want to fire an event anytime the user selects a new row in a non-editable datagrid. I have successfully used the CLICK event, but this event is not fired when the user uses the keyboard to select a different row in the datagrid. What do I have to do to cause an event to fire whenever the currently highlighted row in the datagrid changes, regardless of weather it was changed by the mouse or by the keyboard?

View 1 Replies

Flex :: Keydown Event For Editable Datagrid Flash?

May 23, 2011

All i have a flex editable datagrid. By default if i press the left navigation arrow key , it moves to the left but not to the next cell. I would like to override the keydown event such that if the left navigation arrow key is pressed down i set the focus to the next cell on the left.

In short the user needs to be able to navigate using the keyboard through the cells using just like in excel(currently the arrow keys move between characters within a cell).

View 1 Replies

Actionscript 3 :: Focus On A Cell Of A DataGrid Without Setting It To Editable?

Jan 31, 2012

I am currently working on making my Flex application accessible. I have an mx DataGrid that I am using for showing complex data. Each row contains information about a person and one of the columns contains a button to "submit" that person's information. Currently if I tab to the DataGrid, it has focus on the whole thing, but I cannot tab to individual cells. For accessibility purposes, I need the user to be able to tab to each of these cells to read the information. Everywhere I've looked I've found that it seems the only way to focus on an individual cell is to set the editable property to true. However, I do not want to make the field editable, as that information should not be changed.

At the very least I would like to be able to tab to the cell that has the button ItemRendender for each person. I could set the rest of the information in the accessibilityName of that. Is there any way to accomplish this? Or am I going to have to find a more "creative" solution?

View 1 Replies

ActionScript 3.0 :: Restrict Editable Datagrid Values In Flex?

Dec 21, 2010

I have a datagrid in flex and i am making the datagrid as editable. I can able to edit it and enter the values. so far so good. Now my requirement was, i want to restrict the editable datagrid cell to some max chars like 10. I mean to say maxChars = 10, i want to restrict like this & i want to implement like this.

View 3 Replies

Flex :: Detect TextInput Changes On An Editable ComboBox In Flex?

Jan 26, 2010

If my ComboBox is editable how can I tell if a change event comes from a change to the TextInput or a change in the selectedIndex of the drop down?

Is there a way to check for this in the event object?

View 1 Replies

Flex :: RowItem Saved On Tab Don't Proceed To Next Editable Item Datagrid?

Apr 12, 2012

I'm using a Flex datagrid where only 1 rowItem is editable. All the other row items are non editable. When I edit the value of the row, and press ENTER or TAB the focus is send to the next editable item in the datagrid. In this case the editable field on the next datagrid row.

I don't want this standard behaviour... I don't want the focus to be processed to the next editable item. Since the data is saved instant, it's quite strange that the focus is given to the next field. The focus has to be remained on the item that was edited.

View 1 Replies

Flex :: Datagrid - AdvancedDatagrid Editable But Not Allowed To Change Data?

Jul 3, 2011

I have an advanced datagrid, but I want users to allow to copy some lines they want. when I use the property editable they are allowed to select the text they need, but they also are allowed to edit this. How can I prevent that?

I want users to be able to select any text in the datagrid, but they are not allowed to change the value of the grid. They should only be allowed to select and copy (ctrl + c).

View 2 Replies

Flash :: Set Style And Disable Focus For ALL TextInput Components?

Aug 24, 2011

How to "setStyle" and "disable focus" (remove the default blue line rectangle when focus) for "ALL" AS3 TextInput components?

View 1 Replies

ActionScript 3.0 :: Flash - Variable Numbers Show Up Inside The Editable Text?

Mar 3, 2012

I want to create a game that has a HUD, showing the player's energy, money and the number of days that has passed. In the hud, I have created an editable text, which I assume would be the same as a dynamic text (I recently transitioned to as3). The editable text also has an instance name. As I create number variables, how would I go about having the variable numbers show up inside the editable text?

View 3 Replies

Flex :: Datagrid - Load Content Into TextInput?

Feb 17, 2010

I've got content coming into my application using a query and an ArrayCollection. I know how to display the content into a DataGrid by using the dataProvider propriety, but I'd like to use TextInput components and drop the DataGrid altogether.

I'm still having a problem all that displays is [object,object]

Here is a bit of my code.

[Bindable]
private var acCon:ArrayCollection;
private function reData():void //RETRIEVE DATA

[Code].....

View 1 Replies

Flex :: Value Edited In TextInput Gets Collapsed While Scrolling Which Is Used As ItemRenderer In DataGrid

Mar 25, 2011

I have two datagrids 1. OPTION GRID and 2. ELECTION GRID. I have used VBox container as itemRenderer in ELECTION GRID which consists of TextInput in Description Column. The following is the sample SWF.

Whenever the checkbox is selected in the OPTION GRID i have to add a corresponding text input with description value in the 2nd grid (ELECTION GRID) for all the rows. Suppose if two checkboxes are selected, i have to add two textinput in the 2nd grid and so on... This is working fine. But whenever if i edit the textinput and scrolled up or down, the value gets collapsed between the rows or get vanished. I suspect that the itemRenderers will be re-used for the other rows while scrolling. How to retain the edited value in textinput ?

The following is the code.

Main code :

<mx:VBox width="100%" height="100%">
<mx:Label text="OPTION GRID :" fontSize="12" fontStyle="normal" fontThickness="15"/>
<components:CAEventDetailDataGrid width="100%" height="20%" dataProvider="

[Code].....

The Election Event is a customised event which will be triggered and invoke the listener function addTextInput whenever the checkbox is selected/de-selected in OPTION GRID.

private function addTextInput(electionEvent : ElectionEvent) : void

Is their a way to retain the edited value in TextInput ?

View 1 Replies

ActionScript 3.0 :: Access TextInput's Inside A Panel?

Oct 12, 2010

I'm creating a panel with a form inside it to force a user to log into my application.

It's pretty simple to login, but I'm having trouble getting at the info inside the username and password boxes.[code]...

View 8 Replies

Flex :: Remove Character Inside TextInput While Typing In It?

Jun 15, 2011

Remove specific characters inside Spark TextInput while user typing on it, without this causing any distrbance like licking with mouse after the last character or alike.

View 2 Replies

ActionScript 2.0 :: Highlight Text Inside A TextInput Component

Jun 22, 2009

I'd like to highlight / select text inside a textInput when the user sets the focus on it. My code (that doesn't work):

[Code]..

View 3 Replies

ActionScript 1/2 :: Can't Access TextInput's Text From Inside The Parent Class

Sep 10, 2009

When I add a TextInput to the stage I can access it with instanceName.text. this works. Now I have one Movieclip with one TextInput inside (the textinput's instance name is testetxt). This MovieClip has a corresponding class and its code is the following:
 
class com.sck.testeT extends MovieClip
{
public var testetxt:MovieClip;

[Code]....

The textinput gets transparent but the text isn't changed... I realized it was because the textinput wasn't initialized yet. so I have to wait a while, but how can I know that it was initialized and I can set the initial text by code?

View 1 Replies

Actionscript :: Flex - Add Search Icon Inside Spark TextInput?

May 11, 2011

I want to add search icon inside the spark TextInput control. Is there a way by which I can extend the TextInput control and add a child to it.

View 1 Replies

ActionScript 2.0 :: Disable SelectionColor In DataGrid?

Apr 26, 2010

I don't want any color painted on the row I have selected in DataGrid, not even white or background color. Is there any code can do this kind of work?

View 2 Replies

ActionScript 3.0 :: Disable Click Event Of Datagrid Of Top Columns?

Jul 20, 2011

I wanna disable click event of datagrid of top columns, which is showing catagoeries string values.

View 1 Replies

Actionscript :: Flex Datagrid Column Disable And Enable

Dec 2, 2011

In my flex application im using a datagrid with following columns [code]now i want to disable the checkbox column on fetching data..after datas are populated in datagrid if user selects any of the field in datagrid for editing..the checkbox for that selected row should be enabled...other rows checkbox should be disabled..

View 1 Replies







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