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

Telerik newbie - RadEditor example needed

2 Answers 146 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 12 Oct 2017, 03:18 PM

Hi,

I'm new to using Telerik controls.  I want to use the radEditor on an ASP.Net web page.  I created a SQL table named AC_ToolText and a column named Description to save the value entered on my web page.  But I can't find an example of how to interact with the SQL database.

So I want to do the following:

1. Allow user to enter rich text and then save to my table.

2. If the user calls my web page, I want to fetch the value from my Description column and display in the RadEditor.

3. The user can change or add to the text and save again if necessary.

 

Can someone provide an example of how to do the above?  Thanks in advance.

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 12 Oct 2017, 04:09 PM
Hi Bob,

RadEditor is not a data bound control and cannot be directly associated with a DataBase table. Please, refer the following forum post for more details on this matter:
http://www.telerik.com/forums/can-t-bind-data-from-sql-to-radeditor#UFvj9W-sV02F0H5smsBy0Q

Regards,
Vessy
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Bob
Top achievements
Rank 1
answered on 13 Oct 2017, 04:36 PM
Thanks.  I discovered that I could use radEditor1.content to save to my database.  I created stored procedures to do the update and another stored proc to fetch the value from my table.  It all works now.
Tags
Editor
Asked by
Bob
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Bob
Top achievements
Rank 1
Share this question
or