As far as I know, in flex 2b3, if you use {} for data binding. it's a
one way binding: source = {destination}.
However, if you need the binding to work in two ways, do you do
another one but switch the source and destination? The reason I ask
this question is that in cairngorm, you can bind the dataprovider of
a datagrid to an arraycollection object inside ModelLocator. if you
make the datagrid editable, then when users make changes inside the
datagrid, you want the arraycollection object in modellocator to be
updated. but the databinding only works in one way.
In this case, if you bind the arrayobject inside modellocator to
datagrid provider, it makes the modellocator has to be aware of where
the view is.
I'm not sure what's the best way to solve this. please help me.
Another question of cairgorm, if i assign a remoting result (an
array) to the arraycollection object inside modellocator, the data
will be shown in the corresponding datagrid in my view. By default,
there is no row selected inside datagrid. if I want the first row to
be selected after the data is assigned to the datagrid, what's the
best way to achieve this? Should this be done by command class?
something like:
ModelLocator.getInstance().arrcollection = result;
myView.datagrid.selectedIndex = 1;
In this case, the command class needs to know where the view is. I don
't consider it as a good design. But do I have to use a view helper
in this case?
Thanks,
Larry
------------------------ Yahoo! Groups Sponsor --------------------~-->
You can search right from your browser? It's easy and it's free. See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/