Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
select

Editor / Server-side API

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7
Step 1: Modify Toolbars using RadEditor.Tools collection:

Step 2: Add new Tool at selected Toolbar:
The tool will be added at toolbar!

Step 3: Add new Colors to the RadEditor dynamically, by using the RadEditor.Colors collection.
At least one of the ForeColor and BackColor tools should be added to the toolbar before adding new colors.

Step 4: Add new Paragraph item to the FormatBlock tool dynamically, by using RadEditor.Paragraphs collection.
The FormatBlock tool should be added to the toolbar before adding new items.
   
 
  •  
  •  
 
 
 
   

Example Source Code & Description

Instructions
Open in new window
  • Server-Side API

    RadEditor's server-side API features intuitive collections for managing the various sets of colors, fonts, paragraphs, symbols, links, and toolbars:

    • RadEditor.FontNames - collection of the available fonts
    • RadEditor.FontSizes - collection of the available font sizes
    • RadEditor.Colors - collection of the available colors
    • RadEditor.Symbols - collection of the available symbols
    • RadEditor.Paragraphs - collection of the available block formatting paragraphs
    • RadEditor.Snippets - collection of the available HTML snippets
    • RadEditor.CssClasses - collection of the available CSS classes
    • RadEditor.Tools - collection of the available toolbars
    • RadEditor.Modules - collection of the available system modules
    • RadEditor.Links - collection of the available custom links


    The example above demonstrates how to programmatically add new Toolbars, Tools, Colors and Headings to the RadEditor by using the respective collections.

Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us