file explorer causes exception in jquery when used inside a tab of ajax tabcontainer

4 posts, 1 answers
  1. Ronen
    Ronen avatar
    29 posts
    Member since:
    Aug 2010

    Posted 05 Aug 2010 Link to this post

    jquery exception:
    {if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}
      
      this function calls the jquery:
     _find: function _find(selector, context, single, filter) {
                var found = [],
                    selectors;
                if (typeof(selector) === "string") {
                    selectors = [selector];
                }
                else {
                    selectors = selector;
                }
                var includeSelf = context instanceof Array,
                    simpleNonTag = /^([\$#\.])((\w|[$:\.\-])+)$/,
                    tag = /^((\w+)|\*)$/;
                if ((typeof(context) === "string") || (context instanceof Array)) {
                    context = Sys._find(context);
                }
                if (context instanceof Sys.ElementSet) {
                    context = context.get();
                }
                foreach(selectors, function(selector) {
                    if (typeof(selector) !== "string") {
                        if (filter) {
                            if (contains(context, selector)) {
                                found.push(selector);
                            }
                        }
                        else {
                            found.push(selector);
                        }
                    }
                    else {
                        var match = simpleNonTag.exec(selector);
                        if (match && match.length === 4) {
                            selector = match[2];
                            var type = match[1];
                            if (type === "$") {
                                Sys._getComponent(found, selector, context);
                            }
                            else {
                                var finder = type === "#" ? Sys._getById : Sys._getByClass;
                                if (context) {
                                    foreach(context, function(node) {
                                        if (node.nodeType === 1) {
                                            return finder(found, selector, single, includeSelf, node, filter);
                                        }
                                    });
                                }
                                else {
                                    finder(found, selector, single);
                                }
                            }
                        }
                        else if (tag.test(selector)) {
                            if (context instanceof Array) {
                                foreach(context, function(node) {
                                    if (node.nodeType === 1) {
                                        if (includeSelf && (selector === "*" || (node.tagName.toLowerCase() === selector))) {
                                            found.push(node);
                                            if (single) return true;
                                        }
                                        if (!filter) {
                                            if(!foreach(all(selector, node), function(node) {
                                                found.push(node);
                                                if (single) return true;
                                            })) {
                                                return true;
                                            }
                                        }
                                    }
                                });
                            }
                            else {
                                var nodes = all(selector, context);
                                if (single) {
                                    if (nodes[0]) {
                                        found.push(nodes[0]);
                                    }
                                    return true;
                                }
                                foreach(nodes, function(node) {
                                    found.push(node);
                                });
                            }
                        }
                        else if (window.jQuery) {
                            if (!filter) {
                                found.push.apply(found, jQuery(selector, context).get());
                            }
                            if (includeSelf) {
                                found.push.apply(found, jQuery(context).filter(selector).get());
                            }
                        }
                    }
                });
  2. Ronen
    Ronen avatar
    29 posts
    Member since:
    Aug 2010

    Posted 08 Aug 2010 Link to this post

    I found out you can't use ajax controls along with telerik controls.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 10 Aug 2010 Link to this post

    Hi Ronen,

    The scenarios where the RadFileExplorer control is updated using AJAX are not supported. The RadFileExplorer uses a UpdatePanel internally and when two or more nested AJAX requests are initiated, then the result becomes unpredictable. This is why, I recommend you to exclude the RadFileExplorer from the partially updated region. The most efficient way to do this is to use a RadAjaxManager control and explicitly specify the controls to be updated.

    I hope this helps.

    Best wishes,
    Fiko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Ronen
    Ronen avatar
    29 posts
    Member since:
    Aug 2010

    Posted 10 Aug 2010 Link to this post

    i switched to tab strip.
Back to Top