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


Similar Posts:


Actionscript 3 :: Detecting Alt KeyDown Keyboard Event In Flex?

Nov 9, 2009

I am trying to detect the key down event for the alt key in flex. I have a standard event listener for KeyboardEvent.KEY_DOWN and KeyboardEvent.KEY_UP but don't get any response for the alt key (or ctrl key).

I know I can detect if the alt key was pressed via a mouse event, but I want to update the cursor when the alt key is pressed to show it will perform a different action from when it's not pressed.

I am using Safari on a Mac for developing so let me know if perhaps it's an isolated issue.

View 4 Replies

Flex :: Components Are Not Dispatching KeyDown Event When It's Used In PopupWrapper

Oct 27, 2011

I'm using a component in a cairngorm PopupWrapper. I want to listen to the KeyboardEvent.KEY_DOWn event on the component but it doesn't seem to be dispatching it. Is it because it's in PopupWrapper? Is there anyway I can get it to dispatch the event?[code]

View 1 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

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 :: 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

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 :: 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

Actionscript :: Keydown Event Reusable Code / Write Once And Use Anywhere In Flex Application

Apr 5, 2011

I am new to flex framework.I have created an application using flex framework 4.1 which is having various components that are shown to the end user in the form of a popup window using <mx:TitleWindow>.This titlewindow is closed either on the click of the close button (displayed in it's titlebar) or by pressing the "escape key" on the keyboard.I coded a functionality wherein I close the current TitleWindow whenever an 'escape' button is pressed.Here is what I did.On the keydown event of TitleWindow I called this function.[code]I had to repeat this code for every TitleWindow that I have used in the project.How can I write the above functionality only once and reuse it amongst various TitleWindow and other components so that the code for the same is not repeated across various components? Every TitleWindow that I am using has different code, scripts and layout in it.

View 1 Replies

ActionScript 3.0 :: Remove Orphaned Datagrid Keydown Listener?

Dec 15, 2009

I have a data grid in one frame, then upon moving to the next frame use removeChild to get rid of it, which works fine.But it seems to leave behind the keyDown handler that is naturally part of the component (which is used to navigate the rows of the datagrid).Is there any way to get rid of this?The first time (and only the first time) I press the up or down arrow key in the next frame which does not have the grid, I get the following error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.controls::DataGrid/drawList()[code]...........

View 6 Replies

ActionScript 3.0 :: When Game Window Open After That User Don't Need To Click On Flash Stage Area For Unable Keydown Event

Dec 21, 2011

I have create a game and added keydown event on Stage but but problem is user need to click on stage then it start capturing keydown event. I want that when game window open after that user don't need to click on flash stage area for unable keydown event..

View 1 Replies

Flex :: Changing Dataprovider Of A Datagrid On Change Event Of Another Datagrid?

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

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.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 3.0 :: Explicitly Call Functions On Keydown Event

Sep 14, 2009

I have a function that is called on a keydown event. Inside the function I do this:

function keyDownHandler(event : KeyboardEvent) : void {
if(cursorMoveCnt < 5 && event.keyCode != Keyboard.ENTER) {
trace(i);
trace(cursorMoveCnt);
stage.focus = arrayOfBoxes[i+cursorMoveCnt];
cursorMoveCnt++;
}

I want to call the same function after every 20 seconds even if enter key is not pressed by the User. Can I create the same effect as pressing the Enter key through code in some way so that the code within the if condition inside the function gets executed?

View 1 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 :: 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 :: 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

Flex :: Add A Datagrid Row On Key Down Event?

Oct 8, 2009

I have a datagrid with one row intially. When I click on the first row, i.e on key down event, I want another row to be added. Earlier I had a button, on clicking which I added the row. But now I want the row to be added automatically once I click the first row. How to do that?

I added keydown event to the datagrid, but it threw some error.

Can someone help me? I have given my code here. I have a text box and a button in the task component. When I click the text box in the task component, I want the addTaskRow function to be called..

[Code]...

View 2 Replies

Flex :: Event Handler Associated To DataGrid Row?

Jan 16, 2012

I'm loading some images from a database using a PHP script through CodeIgniter, but when I try to add an event handler to do some stuff with these images, Flex compiler is showing me an error:1180: Call to a possibly undefined method cloneCar.Why I can not add an event handler in this context?

<mx:Accordion>
<mx:Form id="menu5" label="Prueba" width="100%" height="100%" backgroundColor="#707070" icon="{roadIcon}">

[code].....

View 1 Replies

Flex :: Itemclick Event In Datagrid?

Jun 9, 2009

The problem can be summarized as when clicking an item in datagrid, the text area shows the value of the item, but here the compoents are separate and hence events need to be dispatched.

[Code]...

View 1 Replies

ActionScript 2.0 :: Send "keydown" Event To A Movieclip?

May 12, 2010

I have to embed an external movieclip in my swf, andi'd want to send it keyboard events by code.

the swf to be embedded resides in the same domain as the parent swf.

View 0 Replies

Flex :: DataGrid Add New Row Via Single Click Event

Apr 15, 2012

Flex data grid has 1 default row created. When user clicks on the second row, a new row needs to be created and made editable.

Here is what works already - user tabs over the columns and when the user tabs while in the last column, a new row is created with default values.

Here is also what already works - user click a button outside the grid, which adds a new row.

(itemEditBegin and itemEditEnd have been implemented)

Here is what does NOT work: When I "single click" on the second row (no data yet - row is null), how do I detect that the currently clicked row is the second row and make it editable? Can I figure out the rowIndex from MouseEvent and use this to add a new row?

Find code below:

<mx:DataGrid id="myGrid" editable="true" click="clickEvent(event)"
itemEditEnd="endEdit(event)" itemEditBegin="beginEdit(event)" variableRowHeight="true" >

[Code]....

View 2 Replies

Flex :: How To Get ItemDoubleClick Event In Spark DataGrid

Mar 7, 2012

Recently I am working with Spark DataGrid. Before I was using AdvancedDataGrid. In that I was capturing itemDoubleClick event. But I am not able to find such a event in SparkdataGrid. So I want to capture double click event on single row of DataGrid. Some people told that, I have to use my custom ItemRenderer to do that. But is there any way to capture itemDoubleClick event in Spark DataGrid without creating custom ItemRenderer ???

View 1 Replies

Flex :: Set The DG In Focus From Stage KeyDown Handler?

Feb 25, 2011

My app has a datagrid as well as many other UIComponents (buttons, menus, etc). I have a general stage KeyDown handler as well as a specific one for the datagrid. The behavior I'm trying to implement is turning out to be trickier than I thought: basically, when using the keyboard arrows I would like the datagrid to always hear about such commands, even if it's not in focus.

Possible approaches I thought of:have the DG be in focus at all times: seems stupid / tricky - basically would need to remember to give focus back to DG after any interaction with the rest of the UI, which obviously doesn't scale.try to set the DG in focus from stage KeyDown handler: seems like the timing doesn't work since the DG gets focus too late to "hear" the event.from the stage keydown handler, check if the DG is not in focus, and if so pass it the event. This seems to make sense in theory, but I'm not sure how to do this properly since my stage keyDown handler uses capture, and thus seems to catch the same event over and over.

View 1 Replies

Flex :: DataGrid ItemEditEnd Event - PreventDefault Function

Jan 13, 2011

I am working with flex's datagrid. I have a DataGridColumn defined as the following, where labelFunction would allow me to display a custom text. I am also using a itemEditEnd handler on the grid to manipulate the entered data for this column. The purpose is to take the user input and split it then store the result in different properties other than "fixedValue". My problem with this approach is that I can't find a way to prevent assignment to the fixedValue property (which doesn't exist).

And using event.preventDefault() in the itemEditEnd handler would stop other events from happening like changing the row from edit mode to the view mode. My question is that if there is other way to achieve the same thing, or a way to just prevent the assignment of the "dataField" data. I am using the dataField to identify the column I am editing. Leaving it null might not be an option.

<mx:DataGridColumn id="columnFixedCurrency" labelFunction="fixedCurrecy_labelFunc" dataField="fixedValue" headerText="Price"/>

View 1 Replies

Flex :: Override Paste Event In DataGrid ItemRenderer?

Mar 16, 2011

I am trying to figure out how to override the default paste logic in a Flex 4 DataGrid ItemRenderer. Does anyone know how to do this?I am trying to capture the event when a user hits Ctrl-V while a cell in the DataGrid has focus and override the logic there.

View 1 Replies

Flex :: Which Event Is Fired After The Data Is Loaded Into Datagrid Or Combobox

Feb 26, 2011

Which event is fired after the data is loaded into datagrid or combobox ? (Assuming the dataprovider is set to the datagrid).

View 1 Replies

Flex :: Capture And Optionally Cancel A Row Selection Event In A DataGrid?

Sep 16, 2011

I have a DataGrid, and what I would like to do, is when a user clicks on a row to select it, check a certain condition, and if it's met prevent the row from getting selected and keep the old selection intact.

View 1 Replies







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