or

private void btnRedo_Click(object sender, System.EventArgs e) { _richTextBox.Redo(); _richTextBox.Focus(); }

string text = File.ReadAllText(@"c:\temp\RichText.txt"); Byte[] convertedText = Encoding.ASCII.GetBytes(text); RadDocument document = _htmlFormatProvider.Import(convertedText); string text = File.ReadAllText(@"c:\temp\RichText.txt"); RadDocument document = _htmlFormatProvider.Import(text);public Form1(){InitHtmlFormatProvider();InitializeComponent();}private static HtmlFormatProvider _htmlFormatProvider;private static void InitHtmlFormatProvider(){_htmlFormatProvider = new HtmlFormatProvider();var htmlExportSettings = new HtmlExportSettings();htmlExportSettings.DocumentExportLevel = DocumentExportLevel.Fragment;_htmlFormatProvider.ExportSettings = htmlExportSettings;}private void commandBarButtonLoad_Click(object sender, EventArgs e){string text = File.ReadAllText(@"c:\temp\RichText.txt");Byte[] convertedText = Encoding.ASCII.GetBytes(text);RadDocument document = _htmlFormatProvider.Import(convertedText);radRichTextBox1.Document = document;}private void commandBarButtonSave_Click(object sender, EventArgs e){string html = _htmlFormatProvider.Export(radRichTextBox1.Document);File.WriteAllText(@"c:\temp\RichText.txt", html);}
using Telerik.WinControls.UI;namespace TestApp { partial class MainForm : RadForm { public MainForm() { InitializeComponent(); ItemGrid.Rows.Add(new CustomRowInfo(ItemGrid, "Item #1", true)); ItemGrid.Rows.Add(new CustomRowInfo(ItemGrid, "Item #2", false)); } private class CustomRowInfo : GridViewRowInfo { public CustomRowInfo(RadGridView owner, string text, bool enabled) : base(owner.MasterView) { Cells[0].Value = text; Cells[1].Value = enabled; } public string Text { get { return Cells[0].Value.ToString(); } set { Cells[0].Value = value; } } public bool Enabled { get { return (bool) Cells[1].Value; } set { Cells[1].Value = value; } } } }}