skip navigation
Telerik UI for ASP.NET AJAX
Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
NEW
: Design Kits for Figma
Online Training
Document Processing Library
Embedded Reporting for web and desktop
Web
Kendo UI
UI for jQuery
UI for Angular
UI for React
UI for Vue
UI for Blazor
UI for ASP.NET Core
UI for ASP.NET MVC
UI for ASP.NET AJAX
UI for Silverlight
UI for PHP
UI for JSP
Mobile
UI for .NET MAUI
UI for Xamarin
Document Management
Telerik Document Processing
Desktop
UI for .NET MAUI
UI for WinUI
UI for WinForms
UI for WPF
UI for UWP
Reporting & Mocking
Telerik Reporting
Telerik Report Server
Telerik JustMock
Automated Testing
Test Studio
Test Studio Dev Edition
CMS
Sitefinity
UI/UX Tools
ThemeBuilder
Design System Kit
Debugging
Fiddler
Fiddler Everywhere
Fiddler Classic
Fiddler Jam
FiddlerCap
FiddlerCore
Extended Reality
UI for Unity XR
Free Tools
JustAssembly
JustDecompile
VB.NET to C# Converter
Testing Framework
View all products
Overview
Demos
Roadmap
What's New
Roadmap
Release History
Migrate to Blazor
Docs & Support
Pricing
Search
Shopping cart
Login
Contact Us
Try now
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX
This is a migrated thread and some comments may be shown as answers.
InsertEmoticon is not implemented yet
1 Answer
88 Views
Editor
This is a migrated thread and some comments may be shown as answers.
dan
Top achievements
Rank 1
dan
asked on
17 Feb 2009,
09:09 AM
hello i am using EditorDropDown but i kip getting this error "the command
InsertEmoticon is not implemented yet.
this is my code please help me
EditorDropDown
InsertEmoticon
=
new
EditorDropDown("InsertEmoticon");
InsertEmoticon.Text
=
"Dynamic dropdown"
;
//Set the popup width and height
InsertEmoticon.Attributes["width"] = "110px";
InsertEmoticon.Attributes["popupwidth"] = "240px";
InsertEmoticon.Attributes["popupheight"] = "100px";
for (int
i
=
1
; i
<
94
; i++)
{
InsertEmoticon.Items.Add(new EditorDropDownItem("
<
IMG
SRC
=
'pages/emoticons/"+i+".gif'
/>
", "pages/emoticons/"+i+".gif"));
}
main.Tools.Add(InsertEmoticon);
//main.Tools.Add(InsertEmoticon);
editor.OnClientCommandExecuted
=
"OnClientCommandExecuting"
;
string
script
=
"function OnClientCommandExecuting(editor, args)"
+
"{" +
"var
name
=
args
.get_name();" +
"var
val
=
args
.get_value();" +
"if (
name
== 'InsertEmoticon'){" +
"editor.pasteHtml('
<
img
src
=\"' + val + '\"
/>
');" +
"args.set_cancel(true);" +
"}" +
"}";
Page.ClientScript.RegisterStartupScript(this.GetType(), "InsertEmoticon", script, true);
Add a comment
Submit comment
Cancel
1 Answer
, 1 is accepted
Sort by
Score
Date
0
Accepted
Rumen
Telerik team
answered on
19 Feb 2009,
04:53 PM
Hi Dan,
You have attached the
OnClientCommandExecuting function
to the editor.
OnClientCommandExecuted
event, instead of to the editor.
OnClientCommandExecuting
event, which is fired before the command execution. This should do the trick.
Kind regards,
Rumen
the Telerik team
Instantly find answers to your questions on the new
Telerik Support Portal
.
Check out the tips
for optimizing your support resource searches.
Add a comment
Submit comment
Cancel
Answer this question
Drag and drop files here or
browse
to attach...
Browse
for files to attach...
Supported file types: PNG, JPG, JPEG, ZIP, RAR, TXT. Max total file size - 20MB.
Submit answer
Cancel
Tags
Editor
Asked by
dan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or
Copy link