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

Transport client selected records for popup radgrid

2 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 17 Sep 2010, 01:19 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 17 Sep 2010, 01:56 PM
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.
0
Roberto
Top achievements
Rank 1
answered on 17 Sep 2010, 11:22 PM
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.
Tags
Grid
Asked by
Roberto
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Roberto
Top achievements
Rank 1
Share this question
or