RAD Window not opening the first time in IE6

4 posts, 0 answers
  1. Naresh
    Naresh avatar
    2 posts
    Member since:
    Jun 2009

    Posted 10 Aug 2010 Link to this post

    I am using a RAD window control.

    Only in IE 6, I can see this behavior. The first time  page loads ( after clearing cookies etc.,) when the lookup window icon is clicked, nothing happens. If we click on it again it works as expected. So, it is firing properly only after post back. Is there a way to avaoid this?

    Upon debugging I find that the first time, "windowid" is returned null !.  

    function OpenLookupWindow(filterSearchType, lookupType, hiddenLookupType, radwindowID, lookupWindowUrl) {
        hiddenLookupTypeVar = document.getElementById(hiddenLookupType);
    #################################
        var oWin = $find(radwindowID);
    ##################################
        hiddenLookupTypeVar.value = lookupType;

        if (lookupType == "LEIdentifier") {
            url = lookupWindowUrl + "?LookupType=" + "LEIdentifier";
            if (null != filterSearchType) {
                url += "&SearchType=" + filterSearchType;
            }
        }  

        //oWin.set_navigateUrl(url);
        oWin.setUrl(url);
        //alert(url);
        oWin.show();
        //Commentd since it is not working on portal.
        //    if (null != filterSearchType && filterSearchType == "LookupSearch") {
        //        oWin.set_offsetElementID(100);
        //    }
    }



    -----------------------------------------

    mark up.
    <telerik:RadWindow ID="leIdentifierRadWindow" runat="server" InitialBehavio=None"
        OpenerElementID="<%# imgLEIdentifier.ClientID %>" Skin="NextGen" EnableEmbeddedBaseStylesheet="false"
        EnableEmbeddedSkins="false" Width="715px" ShowContentDuringLoad="false" VisibleStatusbar="false"
        ReloadOnShow="true" Behavior="Close,Reload" Modal="true" Title="<%$ CMBResources:CAS, com_lookup_LEIdentifier %>"
        OnClientShow="OnClientShowRadWin" OnClientClose="UpdateLETxtBoxValue">
    </telerik:RadWindow>


    Thank you,
    Nkumar
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 11 Aug 2010 Link to this post

    Hello Naresh,

    The code looks OK but I don't see how you call the OpenLookupWindow() function. Could you please provide more information on that issue?



    Kind regards,
    Georgi Tunev
    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
  3. Naresh
    Naresh avatar
    2 posts
    Member since:
    Jun 2009

    Posted 12 Aug 2010 Link to this post

    <span  id="spnImgLEIdentifier" runat="server" class="cmb_ltFlt cmb_sp5">
                                <asp:LinkButton ID="imgLEIdentifier" runat="server" CssClass="cmb_lookup cmb_vsp2" AlternateText="Look Up"
                                    BorderStyle="None" OnClientClick="javascript: return OpenLeIdNameWin('LEIdentifier');" />
                            </span>




    function OpenLeIdNameWin(lookupType) {
                var filterSearchType = '<%=FilterSearchType %>';
                OpenLookupWindow(filterSearchType, lookupType, '<%=HdnlookupType.ClientID %>', '<%= LeIdentifierLookupRadWindow.ClientID %>', '<%=leNameIdentifierLookupPath%>');
                return false;
            }
     
    function OpenLookupWindow(filterSearchType, lookupType, hiddenLookupType, radwindowID, lookupWindowUrl) {
        hiddenLookupTypeVar = document.getElementById(hiddenLookupType);
        var oWin = $find(radwindowID);
        hiddenLookupTypeVar.value = lookupType;
     
        if (lookupType == "LEIdentifier") {
            url = lookupWindowUrl + "?LookupType=" + "LEIdentifier";
            if (null != filterSearchType) {
                url += "&SearchType=" + filterSearchType;
            }
        }
       
     
        //oWin.set_navigateUrl(url);
        oWin.setUrl(url);
        //alert(url);
        oWin.show();
        //Commentd since it is not working on portal.
        //    if (null != filterSearchType && filterSearchType == "LookupSearch") {
        //        oWin.set_offsetElementID(100);
        //    }
    }



    Thanks,
    Nk
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 18 Aug 2010 Link to this post

    Hi Naresh,

    I ran your code and it worked as expected. I only see one problem in it - you have set the OpenerElementID property for the RadWindow and you set OnClientClick of the same linkbutton to open that RadWindow again. I would suggest to remove the OpenerElementID property.

    If you still experience problems, please open a support ticket and send us a runnable project where the problems can be reproduced so we can investigate further.

    Kind regards,
    Georgi Tunev
    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
Back to Top