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

RAD Window not opening the first time in IE6

3 Answers 43 Views
Window
This is a migrated thread and some comments may be shown as answers.
Naresh
Top achievements
Rank 1
Naresh asked on 10 Aug 2010, 09:43 PM
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

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Aug 2010, 01:13 PM
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
0
Naresh
Top achievements
Rank 1
answered on 12 Aug 2010, 07:41 PM
<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
0
Georgi Tunev
Telerik team
answered on 18 Aug 2010, 09:34 AM
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
Tags
Window
Asked by
Naresh
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Naresh
Top achievements
Rank 1
Share this question
or