telerik rad editor RRS feed

  • Question

  • User1024191908 posted


    I have a radeditor and using this code:

                    type: "POST",
                    url: "Modules/News/Handler/NewsNewsHandler.ashx",
                    data: { Mod: 'getRowInfo', guidRow: guidRow },
                    cache: false,
                    success: function (data) {
                        var json = $.parseJSON(data);
                        $(json).each(function (i, val) {
                            $.each(val, function (k, v) {
                                if (k == "NewsDetail") {
                                    var editor = $find("<%= NewsDetail.ClientID%>");//this line returns null

    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

    Sunday, February 25, 2018 8:30 AM


  • User475983607 posted

    There is not enough code to make a determination.  My best guess is the following line of code is loaded before the NewsDetail element is loaded in the browser.

    var editor = $find("<%= NewsDetail.ClientID%>");//this line returns null

    Maybe place the AJAX function below the NewsDetail markup.

    Other than that, I suggest you contact Telerik support as $find is a Telerik function.  In jQuery the syntax is $(selector).find().

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, February 25, 2018 1:02 PM