New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

CRUD Operations

Updated on Oct 27, 2026

The following example demonstrates how to save, read, update, and delete text content in a local database using the Editor component.

For a runnable project, refer to this GitHub repository. The previously linked example assumes you have Telerik UI for ASP.NET Core and Entity framework installed and a local database set up.

This code has no applied XSS attack prevention and it is the responsibility of the developer to manage these security risks. For more information, refer to the article on preventing cross-site scripting.

The following examples demonstrate the equivalent CRUD workflow for ASP.NET MVC.

C#
public class EditorDataContext : DbContext
{
    public DbSet<EditorData> EditorData { get; set; }
}

public class EditorData
{
    [Key]
    public int ContentId { get; set; }
    public string EditorContent { get; set; }
}

Use the same form pattern for Edit.cshtml, replacing the submit text with Save and adding @Html.HiddenFor(model => model.ContentId).

See Also

In this article
See Also
Not finding the help you need?
Contact Support