The Symbols dropdown of Telerik RadEditor by default displays a predefined set of symbols. They are kept in the Symbols Collection. You can easily modify this default set or add a new symbol using the Add method of this collection.
| ASPX |
Copy Code |
|
<rad:RadEditor id="RadEditor1" Runat="server"></rad:RadEditor> |
| C# |
Copy Code |
|
RadEditor1.Symbols.Add('\u20AC'); RadEditor1.Symbols.Add('\u00A2'); RadEditor1.Symbols.Add('\u00A3'); RadEditor1.Symbols.Add('\u00A5'); RadEditor1.Symbols.Add('\u00A4'); RadEditor1.Symbols.Add('\u00A9'); RadEditor1.Symbols.Add('\u00AE'); RadEditor1.Symbols.Add('\u2122');
//this will render the string of symbols as separate chars in the symbols dropdown RadEditor1.Symbols.Add("€£¥©®™±≠≤≥÷×∞αβγδεζηθικλμνξοπρςστυφχψω); |
| VB.NET |
Copy Code |
|
RadEditor1.Symbols.Add("€"C) RadEditor1.Symbols.Add("¢"C) RadEditor1.Symbols.Add("£"C) RadEditor1.Symbols.Add("¥"C) RadEditor1.Symbols.Add("¤"C) RadEditor1.Symbols.Add("©"C) RadEditor1.Symbols.Add("®"C) RadEditor1.Symbols.Add("™"C)
RadEditor1.Symbols.Add("€£¥©®™±≠≤≥÷×∞αβγδεζηθικλμνξοπρςστυφχψω") |
When using the Add method from Symbols collection the Symbols dropdown will be reset, so the symbols you add will not be appended to the default set, but will rather create a new Symbol set. See the example below:
|
Default state |
Programmatic population |
|
 |
 |
|
(The Symbols dropdown contains the default set of symbols) |
(The Symbols dropdown contains only those added using the Add method) |
You can also populate the Symbols dropdown using the ToolsFile, as shown in the example below:
| ToolsFile.xml |
Copy Code |
|
<symbols> <symbol value="\u20AC" /> <symbol value="\u00A2" /> <symbol value="\u00A3" /> <symbol value="\u00A5" /> <symbol value="\u00A4" /> <symbol value="\u00A9" /> <symbol value="\u00AE" /> <symbol value="\u2122" /> </symbols> |
Here is a complete list of the symbols populating by default the "Insert Symbols" dropdown:
\u20AC, \u00A, \u00A3, \u00A5, \u00A4, \u00A9, \u00AE, \u2122, u00B1, \u2260, \u2248, \u2264, \u2265, \u00F7, \u00D7,
\u221E, \u00BD, \u00BC, \u00BE, \u00B2, \u00B3, \u2030, \u00B6, \u00A7, \u03B1, \u03B2, \u03B1, \u002E, \u0394, \u00B5,
\u03A9, \u2211, \u00D8, \u2220, \u00BA, u00AB, \u00BB, \u00B7, \u2022, \u2020, \u2021, \u0192
 |
Please, bear in mind that the Telerik RadEditor will persist its state (including the Symbols set) between postbacks. In order to create a new set of symbols (e.g. for different users), you will need to clear it first. This can be done using Remove method. |