Call Window inside Grid... Load new Data on Window

2 posts, 0 answers
  1. pradip
    pradip avatar
    40 posts
    Member since:
    Feb 2009

    Posted 17 Sep 2009 Link to this post

    Hi

    My functionality is like this...

    Inside RAD Grid, one column is View Details.... On Click of View Details, I have to show Popup window...

    Question...
    1. How to pass the parameter (Row_ID) from my RAD grid to the Javascript which opens the popup window?
    2. Also currently the window is keeping the View of my last window click.... I mean.. say I click on View Details of item No#1 and closed that window. And second time I clicked on Item No# 2 then window opens but it is showing old data only.

    How can I get the newly click item data on page load it self?


    <

     

    script type="text/javascript">

     

    function openRadWin() {

     

    radopen("ViewSiteGroupSites_Popup.aspx,

    "RadWindow1");

     

    }

     

    </script>

     


    <

     

    telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="true" >

     

     

    <Windows>

     

     

    <telerik:RadWindow

     

     

    id="RadWindow1"

     

     

    runat="server"

     

     

    showcontentduringload="false"

     

     

    width="500px"

     

     

    height="500px"

     

     

     

    VisibleTitlebar="false"

     

     

    VisibleStatusbar="false"

     

     

    >

     

     

    </telerik:RadWindow>

     

     

    </Windows>

     

     

    </telerik:RadWindowManager>

     


     

     

     

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Sep 2009 Link to this post

    Hi Pradip,

    1. You could add onclick event to the "View Details" link and open the radwindow in event handler as shown in the Window Editing demo. You can use the window URL to pass parameter Row_ID.

    2. Try setting DestroyOnClose property of RadWindowManager to True and see whether it helps in showing corresponding data.
     
    -Shinu.
Back to Top