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

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

3 Answers 44 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Ronen
Top achievements
Rank 1
Ronen asked on 05 Aug 2010, 02:18 PM
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());
                        }
                    }
                }
            });

3 Answers, 1 is accepted

Sort by
0
Ronen
Top achievements
Rank 1
answered on 08 Aug 2010, 09:05 AM
I found out you can't use ajax controls along with telerik controls.
0
Accepted
Fiko
Telerik team
answered on 10 Aug 2010, 03:20 PM
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
0
Ronen
Top achievements
Rank 1
answered on 10 Aug 2010, 03:23 PM
i switched to tab strip.
Tags
FileExplorer
Asked by
Ronen
Top achievements
Rank 1
Answers by
Ronen
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or