Hi,
Thanks
for your input but binding is not a problem but it should bind the two the
datagrid cell and textinput as I type in the cell. So this did not work. I am
trying to use cellrenderer to see if I can render the cell it as a text
input and handle events on it accordingly. I am stuck at trying to use the
cellRenderer at the datagrid level instead of dataGridColumn as my datagrid is
dynamic and the number of columns keep changing depending on the data coming
from the business tier. This is what my datagrid looks like:
<mx:DataGrid id="columnar_dg"
height="91" textAlign="left" width="524" dataProvider="{listSpec.columnarSpec}"
cellPress="pressCell(event)" cellEdit="editCell()"
keyUp="test()"
cellRenderer="test" sortableColumns="false" rowHeight="15" headerHeight="14"
editable="true"
creationComplete="setHeaders()">
</mx:DataGrid>
</mx:DataGrid>
The
KeyUp does not work. The test() function in cell renderer is also not
called. How can I get the cellrenderer to work at the datagrid level instead for
DataGridColumn?
Appreciate any ideas on this.
Thanks,
Shweta
-----Original Message-----On 10/28/05, Parekh, Shweta - BLS CTR <[EMAIL PROTECTED]> wrote:
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani
Sent: Friday, October 28, 2005 10:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Keyup event in datagrid
> When is the keyup event in datagrid fired? I have a requirement where as I
> edit a cell in a datagrid, the text in my text input should get updated and
> vice versa. Basically I have to tie together a particular cell pressed in
> the datagrid to a textinput field. I have a keyUp event for my text input
> which updates the text in the datagrid cell as I update the textinput but I
> am not able to get the other way working.
Couldn't you just bind the text to the grid's data provider?
<TextInput text="{dataGrid.dataProvider[index].field}" />
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.