Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

telerik rad editor

$
0
0

hi

I have a radeditor and using this code:

$.ajax({
                type: "POST",
                url: "Modules/News/Handler/NewsNewsHandler.ashx",
                data: { Mod: 'getRowInfo', guidRow: guidRow },
                cache: false,
                success: function (data) {
                    debugger;
                    var json = $.parseJSON(data);$(json).each(function (i, val) {$.each(val, function (k, v) {


                            if (k == "NewsDetail") {
                                debugger;
                                var editor = $find("<%= NewsDetail.ClientID%>");//this line returns null
                                editor.set_html(v);
.
.
.

as you see the $find() method doesn't find the editor and returns null so I can't proceed.

at the same place jquery selector $('#ct102NewsDetail') finds the element.

what could be the reason and the solution to it?

thanks in advance


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>