![]() |
![]() |
||||||
|
|||||||
| Tags: datagrid, event, row, select |
![]() |
|
|||
|
I'm trying to manage an event in the Datagrid management:
I want to call a function when a row is selected (using mouse or keyboard buttons). I'm using the itemEditBeginning event, but as specified in documentation it works only when the datagrid is editable="true". Is there a possibility to intercept the selection of a cell/row even if editable is not true? Thanks to all in advance |
| Sponsored Links |
|
|||
|
hi,
in your datagrid call use the property itemClick. e.g <mx ataGrid id="DG" dataProvider="{some provider"}itemClick"myFunction())"> then in your script you can declare the function myFunction to get column values of the selected row, use DataGrid.selectedItem.ColumnDatafield so for the above datagrid with a column name and dataField=fullName i can use DG.selectedItem.fullName HTH regards abhi |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise