ComboBox getting Disabled after Async CallBack

1 posts, 0 answers
  1. Vishal
    Vishal avatar
    1 posts
    Member since:
    Jun 2011

    Posted 14 Sep 2011 Link to this post

    Hi,

    I am facing an issue with radComboBox with Telerik DLL Version (2011.1.413.35). Whenever I do a async callback to the Page ComboBox is getting disabled and am not able to change anything in Combobox.

    Same is hapopening with my older version Telerik (2008.02.0826.35). We added a patch as provided by Telerik in previous thread but after patch adding also same issue is coming.
    Patch Code snippet:--

    <

     

     

    script type="text/javascript">

     

     

     

     

     

    //Uncomment this as well if you use RadAjaxPanel/RadAjaxManager to update any RadControl for ASP.NET AJAX.

     

     

     

    // Telerik.Web.UI.RadAjaxControl.prototype._onFormSubmitCompleted = function (sender, args) {

    // if (sender._xmlHttpRequest != null) {

    // if (this._handleAsyncRedirect(sender._xmlHttpRequest)) {

    // try {

    // sender._aborted = true;

    // }

    // catch (e) {

    // //

    // }

    // return;

    // }

    // }

     

     

    // if (sender._xmlHttpRequest != null && !sender.get_timedOut()) {

    // var scriptBlocks = this.getResponseItems(sender.get_responseData(), "scriptBlock");

    // for (var i = 0, length = scriptBlocks.length; i < length; i++) {

    // var content = scriptBlocks[i].content;

    // if (content.indexOf(Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)) != -1) {

    // var linksString = content.substr(content.indexOf("\"links\":") + 10, content.indexOf("]", content.indexOf("\"links\":")) - (content.indexOf("\"links\":") + 10)).replace(/\"/g, '');

    // if (linksString != "") {

    // this._links = linksString.split(",");

    // this.updateHeadLinks();

    // }

    // }

     

     

    // if (content.indexOf(".axd") == -1 && scriptBlocks[i].id == "ScriptPath") {

    // Telerik.Web.UI.RadAjaxControl.IncludeClientScript(content);

    // }

    // }

     

     

    // var panels = this.getResponseItems(sender.get_responseData(), "updatePanel");

     

     

    // Telerik.Web.UI.RadAjaxControl.panelsToClear = [];

     

     

    // for (var i = 0, length = panels.length; i < length; i++) {

    // var panel = panels[i];

    // if (!$get(panel.id)) {

    // var newUpdatePanel = document.createElement("div");

    // newUpdatePanel.id = panel.id;

    // var element = $get(panel.id.replace("Panel", ""));

     

     

    // if (!element)

    // continue;

     

     

    // var parent = element.parentNode;

    // var nextSibling = element.nextSibling || Telerik.Web.UI.RadAjaxControl.GetNodeNextSibling(element);

     

     

    // if (element.nodeType === 1) {

    // if (element.dispose && typeof (element.dispose) === "function") {

    // element.dispose();

    // }

    // else if (element.control && typeof (element.control.dispose) === "function") {

    // element.control.dispose();

    // }

    // var behaviors = Sys.UI.Behavior.getBehaviors(element);

    // for (var j = behaviors.length - 1; j >= 0; j--) {

    // behaviors[j].dispose();

    // }

    // }

     

     

    // $telerik.disposeElement(element);

    // parent.removeChild(element);

     

     

    // Telerik.Web.UI.RadAjaxControl.InsertAtLocation(newUpdatePanel, parent, nextSibling);

    // Telerik.Web.UI.RadAjaxControl.panelsToClear[Telerik.Web.UI.RadAjaxControl.panelsToClear.length] = panel;

    // }

    // }

    // }

     

     

    // sender.get_webRequest().remove_completed(this._onFormSubmitCompletedHandler);

    // };

     

     

    $telerik.disposeElement =

     

    function (element) {

     

     

     

    if (typeof (Sys.WebForms) == "undefined")

     

     

     

    return;

     

     

     

     

     

    var prm = Sys.WebForms.PageRequestManager.getInstance();

     

     

     

    if (prm && prm._destroyTree)

     

    prm._destroyTree(element);

     

     

    else if (Sys.Application.disposeElement)

     

    Sys.Application.disposeElement(element,

     

    true);

     

    };

     

     

    Telerik.Web.UI.RadComboBox.prototype._removeDropDown =

     

    function () {

     

     

     

    var slide = this.get_dropDownElement().parentNode;

     

    slide.parentNode.removeChild(slide);

     

     

     

     

    if (this._disposeChildElements)

     

    $telerik.disposeElement(slide);

     

     

     

     

    if (!$telerik.isSafari)

     

    slide.outerHTML =

     

    null;

     

     

     

    this._dropDownElement = null;

     

    };

     

     

    </script>

     



    We are using RadAjaxPanel to update the Controls.
    Please provide any solution to this issue, any help will be highly appreciated.

    Thanks Vishal
Back to Top