This is a migrated thread and some comments may be shown as answers.

radEditor AjaxSpellChecker or dynamic resource loading fail

3 Answers 32 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
James Tan
Top achievements
Rank 1
James Tan asked on 07 Feb 2011, 09:06 PM
The javascript (AjaxSpellCheck.js) call to getLocalizedString() seems fail all the time in radEditor in a ASP.NET MVC2 project. The returned value is always "Undefined". Same thing for the "Background Color" tool which displays "Undefined" for the "Custom color" link text.

All other resources used by radEditor loaded at beginning are OK. 

Can someone help?

Thanks

James

3 Answers, 1 is accepted

Sort by
0
James Tan
Top achievements
Rank 1
answered on 09 Feb 2011, 07:47 PM
It tuned out, for some reason, the generated js code is different than normal webform. The MVC page has no such line
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadEditor, {"_localization":{"addcustomcolor":"Add Custom Color...","addcustomhexcolor":"Add Hex Color...",",...
});

But I could not figured it why.
0
Rumen
Telerik team
answered on 10 Feb 2011, 09:34 AM
Hello James,

I was unable to reproduce the reported problem. For your convenience I have attached a sample working project that demonstrates the problem along with a video demonstrating my test. You can see the video at: http://screencast.com/t/RFlyO5yFoN.

Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
James Tan
Top achievements
Rank 1
answered on 10 Feb 2011, 05:12 PM
Thanks Rumen, though your demo is not working (it is missing telerik stylesheet register and has no spellchecker), it did give me the idea that the RadScriptManagerMaster should be put before radEditor. Now the problem solved. 
James
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
James Tan
Top achievements
Rank 1
Answers by
James Tan
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or