Go Back   TX Text Control Community > TX Text Control Discussion and Support Forums > TX Text Control .NET

TX Text Control .NET Please use this forum for TX Text Control .NET support only. If you need support for a different product, please use the appropriate forum.

Reply
 
Thread Tools Display Modes
  #1  
Old March 5, 2010
KevNewbie KevNewbie is offline
Registered User
 
Join Date: Mar 2010
Posts: 2
Databinding v15.1 Pro via Bindings.Add

Hi,

I am Able to bind two Text Controls and a TXTextControl to a DataSource.

I am able to load the Data into the Bound TXTextControl as "text" only.
I have the Data stored in the Database as Text, RTF, and a Binary Byte Array.

I am able to manually "load" the RTF and Binary Byte Array into the TXText Control as Formatted Text.

However, when I Bind (Bindings.Add) the TXText Control, I can only Bind to UNFORMATTED Text.
If I bind to the RTF Text, I get UnEncoded RTF. (No Formatting - Raw RTF.)
If I bind to a Binary Byte Array, I get "Byte Array[]" displayed in the Control.

Am I doing something wrong, or does the V.15.1 Control not support Bindings.Add for Formatted Text?

Loading the TXText Control Manually:
(This Works! Formatted Text!!!)
textControlREAD.Append(item.FormattedNote, TXTextControl.BinaryStreamType.MSWord, loadSettings, appendSettings);

Loading the TXText Control via Bindings.Add:
(This Does Not Work! I can only get Unformatted Text!)
textControlINSERT.DataBindings.Add("Text", _dataSources[NotesDS.NOTE], "FormattedNote", true, DataSourceUpdateMode.OnPropertyChanged);

Can I bind (.DataBindings.Add) the TXTextControl to Formatted Text? (RTF or Binary Byte Array)

We want to be able to Load Formatted Text from the Database (a Note) and allow the User to save the Formatted Text back to the Database.

We could implement this via Your "Load" and "Save" methods.
But we're doing this inside a Lot of other Bound Controls representing that DataRow, and the Parent DataRow.

Do we have any options other than using the Load and Save Methods?
(I've searched the Forums and the Web for "Bindings.Add".)

Thank You
Reply With Quote
  #2  
Old March 5, 2010
KevNewbie KevNewbie is offline
Registered User
 
Join Date: Mar 2010
Posts: 2
Re: Databinding v15.1 Pro via Bindings.Add

Got a VERY Quick Responce from Bjoern.
(Thank You Bjoern!!)

"Data binding is not supported by TX Text Control. Loading and saving is only possible using the Load and Save method of TX Text Control."

While the Control has ".Bindings.Add" functionality, I'm guessing it's just something that is Inherited from the Control Class.

Knowing this though, I'm able to forget about trying to Bind for the Formatted Text, and go back to the "Load" and "Save" methods.

Thanks Again to Bjoern and the Support Folks for the Quick (Overnight for us on the Pacific Coast!) Reply!
Keeps us from spinning our wheels...
Reply With Quote
Reply

Bookmarks

Tags
binding , bindings , bindings.add

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem rendering certain HTML in v15 and v15.1 that worked in v14 kschaldenbrand TX Text Control ActiveX 3 March 4, 2010 11:56:51
Databinding -- Yet Again George TX Text Control Feature Requests 0 May 26, 2009 23:03:30
migration from activeX Tx10 pro to Tx 12 pro DotNet slag007 TX Text Control .NET 2 January 20, 2006 13:49:45


All times are GMT +1. The time now is 06:19:52.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 1991 - 2010 The Imaging Source Europe GmbH