Hello all. I am having an issue with a radwindow that I haven't seen here. It's probably something simple that I need to do, but cannot seem to figure it out.
My issue is this:
I have A radwindow
I initialize the NavigateURL on page load as follows:
I open it using a lnk button and the javascript below and it works like a charm
The problem happens when I try to modify the navigateURL and then reopen the radwindow
If I change the dropdown, thus triggering the above code and changing the NavigateURL (verified in debug), then again clicking the lnkbutton lnkBtnTrendSelectScopeItems, the radWindow opens again with the orginal URL still in place.
Thanks in advance for your help!
Clint
My issue is this:
I have A radwindow
<
telerik:RadWindow
runat
=
"server"
ShowContentDuringLoad
=
"False"
ReloadOnShow
=
"true"
Title
=
"Trend Report - Select Scope Objects"
AutoSize
=
"false"
ID
=
"RadWindowAddTrendScopeObjects"
Width
=
"500px"
Height
=
"445px"
Modal
=
"true"
OnClientClose
=
"OnClientCloseAddTrendScopeObjectsWindow"
Behavior
=
"Default"
InitialBehaviors
=
"None"
Behaviors
=
"Close,Move"
DestroyOnClose
=
"true"
>
</
telerik:RadWindow
>
I initialize the NavigateURL on page load as follows:
assessmentID =
new
Guid(ddlDataSource.SelectedValue);
RadWindowAddScopeObjects.NavigateUrl = addScopeURL + assessmentID.ToString() +
"&LinkID1="
+ cachedUser.User.UserID.ToString();
I open it using a lnk button and the javascript below and it works like a charm
<asp:LinkButton ID="lnkBtnTrendSelectScopeItems" runat="server" Text="Click Here"
OnClientClick="openAddTrendScopeObjectsWindow(); return false;"></asp:LinkButton>
(Javascript below)
function openAddTrendScopeObjectsWindow() {
var oWnd = $find("<%= RadWindowAddTrendScopeObjects.ClientID %>");
oWnd.show();
}
The problem happens when I try to modify the navigateURL and then reopen the radwindow
protected
void
ddlTrendAssessmentBasedScope_SelectedIndexChanged(
object
sender, EventArgs e)
{
trendAssessmentID =
new
Guid(ddlTrendAssessmentBasedScope.SelectedValue);
RadWindowAddTrendScopeObjects.NavigateUrl = addScopeURL + trendAssessmentID.ToString() +
"&LinkID1="
+ cachedUser.User.UserID.ToString();
}
Thanks in advance for your help!
Clint