Skip to main content
Aug 17, 2009 7:25 AM UTC
Question

Data Binding in TLF

Hi,

How we can achieve Two way binding between TLF and TextArea text, Keeping in mind that there may be multiple spans or multiple paragraphs.

Please let me know this is very urgent for me.

Rajesh

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

Inspiring
Aug 17, 2009 5:10 PM UTC

Hi,

TLF doesn't have much support for data binding.  I think the best you can do is listen for "damage" events on the TextFlow and then attempt to synchronize the changes.  Alternatively you can listen for flowOperationBegin/flowOperationEnd events which will give more information about what is changing.

Hope that helps,

Richard

Translate
Aug 18, 2009 4:53 AM UTC

Hi Richard,

I am doing it from TextArea to TLF, still I would like to know if I could use any other control than TextArea from which I can get more control on which span or which paragraph is being edited or I can link it with the TLF easily than textarea.

Regards,

Rajesh

Translate
Inspiring
Aug 19, 2009 12:31 AM UTC

Hi,

I don't think so - that may be a flex question.  More reliable than saving actual object pointers maybe remembering positions and then finding those locations again in the TextFlow.  Data binding is not supported as a first class mechanism so any solution is going to be ad hoc.

Hope that helps,

Richard

Translate