This is a migrated thread and some comments may be shown as answers.

Binding Data

2 Answers 36 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Tahir
Top achievements
Rank 1
Tahir asked on 15 Nov 2013, 06:15 PM
Hello Telerik support team,

I am using Telerik Richtextbox in a datagrid in a data template column. The Problem is that I want to show the data from the database in following format.

SECTION: 1
COST CENTRE: Stock Item
Stock Name: BSH001-BSH Inv/Del Note with Integral Label
Stock Code: P013-BSH001
Supplier: CFH Security
Location: CFH Total Document Management
Size: 0 X 0
Weight: 0

In Above data the Line containing "Section: 1" is coming from one field but the "Cost Center: Stock Item" is coming another field. Rest of all are coming from third field.

How Can bind it to radRichtextbox? User can edit this text. He can add some new lines to it. On the lost focus, I will be add all text into a field called Instruction.

Thanks in advance.

Regards,

Tahir Khan

2 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 20 Nov 2013, 11:39 AM
Hello Tahir,

Thank you for contacting us!

In order to populate the document in RadRichTextBox with data you can use the mail merge functionality of the control. I suggest you read the online documentation about mail merge and take a look at this demo. Please note that in order to handle the data that you are going to use, you need to make a business object consisting of the respective properties of all fields and use it to construct the items source.  

Please, find attached a sample demo project showing the option explained above.

I hope this helps! Don't hesitate to contact us again!

Regards,
Svetoslav
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Tahir
Top achievements
Rank 1
answered on 21 Nov 2013, 12:31 PM
Hi Svetoslav,

Thanks for your cooperation. 
Tags
RichTextBox
Asked by
Tahir
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Tahir
Top achievements
Rank 1
Share this question
or