? orus casino? bodog? ruleta? luckia? betano? sportium? spin casino? stakes? 3 reyes? 888? lottoland? coolbet? 777 casino? gana777? betfair? bwin? yak casino? ivy casino? oddschecker? red casino? netbet? william hill? vip casino? rey casino? marathonbet? dafabet? sol casino? 1bet? winland? bet777? parimatch? 18bet? 888casino? campobet? mostbet? ganabet? rushbet? betcris? betsson? lucky? novibet? winner? winpot? betmaster? betmexico? cancun? playcity? strendus? pokerstars? codere? caliente? fun88? bbrbet? 1win? 10bet? betway? pin up? spinbet? 7cslot? pickwin? spin bet? mr fortune? w88? pragmatic? gamdom? crasher? jojobet? betmex? bcasino? foliatti? winner mx? bets 10? big bola? bet master? inbet? 7slots? lucky day? m777? mexplay? luckydays? bet caliente? 1x? plinko

Forum


HomeHomePremiumPremiumDevelopmentDevelopmentProblem using Telerik controlsProblem using Telerik controls
Previous
 
Next
New Post
4/9/2014 9:10 AM
 

Hello,

Has anyone had any luck using the Telerik/DNN controls?

I'm trying to use the Editor control, which displays ok but I can't access via Javascript.

All I want to do is get the html generated by the editor, but obviously i must be missing something as the get_html function, please see my code below, does not exits.


Can anyone please help. A resources which explains how to use the controls from a DNN perspective would be useful.

Best Regards,

Steve

ASCX
====


<%@ Register Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" TagPrefix="cc1" %>
<cc1:DnnEditor ID="WysiwygDescription" ClientIDMode="Static"  runat="server"></cc1:DnnEditor> 


Javascript
========

    var editor = $(Container.find("#WysiwygDescription")); //get a reference to RadEditor client object
    var oSelElem = editor.get_html(true); //get the editor content as plain text
    alert(oSelElem); //alert the plain text content    




http://www.telerik.com/help/aspnet-ajax/editor-get-html.html

 
New Post
4/11/2014 3:46 PM
 
Perhaps?
<cc1:DnnEditor ID="WysiwygDescription" ClientIDMode="Static" OnClientLoad="OnClientLoad" runat="server"></cc1:DnnEditor> 

<script type="text/javascript"> 
function OnClientLoad(editor, args) { 
	editor.attachEventHandler("onblur", function (e) {
		var oValue = editor.get_html(true); 
		alert(oValue); 
	}); 
</script>
 
New Post
4/12/2014 12:21 AM
 

Hi Scott,

Thank you for your reply.

I did try that code, unfortunately it just has the effect of clearing the editor and locking it.

Also, I would like to retrieve the contents via the click event of a save button. Whilst I it would probably work, I have had issues with Javascript in the past where events fire in a different order depending on the browser.

Steve

 
New Post
4/13/2014 6:23 AM
 

Finally I have an answer.

http://www.dnnsoftware.com/forums/forumid/201/threadid/499639/scope/posts/threadpage/1
Please note it runs to 2 pages.

Just shows I should read more documentation.

I don't understand how the original example that I followed could work now.

Best Regards,

Steve


 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentProblem using Telerik controlsProblem using Telerik controls



Try FREE
30 days money back guaranteed