Changing NavigateURL and reopening radwindow not working.

3 posts, 0 answers
  1. Clint Leonard
    Clint Leonard avatar
    10 posts
    Member since:
    Apr 2010

    Posted 04 Jan 2011 Link to this post

    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

    <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">

    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)

    openAddTrendScopeObjectsWindow() {



    var oWnd = $find("<%= RadWindowAddTrendScopeObjects.ClientID %>");



    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();
    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!

  2. Clint Leonard
    Clint Leonard avatar
    10 posts
    Member since:
    Apr 2010

    Posted 05 Jan 2011 Link to this post

    Found the problem.  I had placed the radwindow outside my radajaxpanel, and so it was not being refreshed.

    One I placed it within the panel, everything is working.

    I hope this helps someone else in the future!
  3. Dave
    Dave avatar
    12 posts
    Member since:
    Jun 2012

    Posted 18 Nov 2013 Link to this post

    This is the future speaking....yes it helped, same exact scenario. 

Back to Top