Transport client selected records for popup radgrid

3 posts, 1 answers
  1. Roberto
    Roberto avatar
    6 posts
    Member since:
    May 2007

    Posted 17 Sep 2010 Link to this post

    Hi,

    I use a radgrid client selection of records. By clicking a delete button in a radtoolbar opens a popup window with another radgrid.
    I need to capture only those clients selected records and use them in the popup radgrid datasource.
    Using ClientEvents OnRowSelected / OnRowDeselected I managed to successfully store a javascript  global variable array  with IDs of the selections and delete when they are deselected.
    I need help accessing this global variable in the popup window that is appears as zero.

    Anyone know how to do this or know of another technique that is not using cookies?

    Thanks a lot.
    Roberto.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 17 Sep 2010 Link to this post

    Hello Roberto,

    Either you can pass the SeectedItems IDs to pop-up window (as url parameter) or use ContentTemplate for RadWidnow which in turn render the grid in same page itself and you can easily access the global variable.

    Documentation on passing parameter using url query string:
    Using the URL Query String to Provide Arguments to RadWindow

    Also, the documentation on calling functions between windows will be of help:
    Calling Functions in Windows

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Roberto
    Roberto avatar
    6 posts
    Member since:
    May 2007

    Posted 17 Sep 2010 Link to this post

    Thank for reply,

    I tried implement RadWindow, but crash layout of the toolbar & the selection IDs are type Guid, difficult to use in querystring with some selections.
    I solved using modal popup with the array being passed in argument and recovered in the popup through window.dialogArguments.

    Roberto.
Back to Top