Binding Data

3 posts, 0 answers
  1. Tahir
    Tahir avatar
    8 posts
    Member since:
    Aug 2012

    Posted 15 Nov 2013 Link to this post

    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.


    Tahir Khan
  2. Svetoslav
    Svetoslav avatar
    55 posts

    Posted 20 Nov 2013 Link to this post

    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!

    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 >>
  3. Tahir
    Tahir avatar
    8 posts
    Member since:
    Aug 2012

    Posted 21 Nov 2013 Link to this post

    Hi Svetoslav,

    Thanks for your cooperation. 
Back to Top