or
| Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
| Dim main As New EditorToolGroup() |
| RadEditor1.Tools.Add(main) |
| main.Tools.Add(New EditorTool("SelectAll", "CTRL+A")) |
| main.Tools.Add(New EditorTool("Cut", "CTRL+X")) |
| main.Tools.Add(New EditorTool("Copy", "CTRL+C")) |
| main.Tools.Add(New EditorTool("Paste", "CTRL+V")) |
| main.Tools.Add(New EditorTool("Undo", "CTRL+Z")) |
| main.Tools.Add(New EditorTool("Redo", "CTRL+Y")) |
| main.Tools.Add(New EditorTool("HorizontalRule")) 'I GET ERROR IN THIS LINE |
| End Sub |
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
| <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> |
| function OpenItem() |
| { |
| var menu = $find("RadMenu1"); |
| var text = $get("openTextBox").value; |
| var item = menu.findItemByText(text); |
| if (item) { |
| alert(item.ID); // <----------------------------------------------------------- |
| item.open(); |
| } |
| else |
| { |
| alert("Item with text '" + text + "' not found."); |
| } |
| } |
| StringBuilder htmlString = new StringBuilder(); // this will hold the string |
| StringWriter stringWriter = new StringWriter(htmlString); |
| HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter); |
| ratingControl.RenderControl(htmlWriter); |
| ratingControlText = stringWriter.ToString(); |
| using(System.IO.MemoryStream msOur = new System.IO.MemoryStream()) |
| { |
| using(System.IO.StreamWriter swOur = new System.IO.StreamWriter(msOur)) |
| { |
| HtmlTextWriter ourWriter = new HtmlTextWriter(swOur); |
| ratingControl.RenderControl(ourWriter); |
| using (System.IO.StreamReader oReader = new System.IO.StreamReader(msOur)) |
| { |
| ratingControlText = oReader.ReadToEnd(); |
| oReader.Close(); |
| } |
| } |
| } |