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

[Solved] get all datakey values

2 Answers 301 Views
Grid
This is a migrated thread and some comments may be shown as answers.
newbie
Top achievements
Rank 1
newbie asked on 22 May 2008, 06:47 PM
I have a radwindow with a grid being opened on the click of a button.

I want to retrieve al the datakey values for a sleceted row on the client side and pass it back to the calling page.

I am unable to get a collection of keys.
Do i have to extract each datakey value with the datakeyname.

In radgrid for asp.net we could do something like:

function SelectClicked()
{

    var grid = window[\"gridPopup\"];
    if(grid.SelectedItems[0] != null)
    {
        var row = grid.SelectedRows[0];
        var oWindow = GetRadWindow();
        scriptText.Append("oWindow.Close(row.KeyValues);
    }
}

But this doesn't work with prometheus.

Please suggest.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 May 2008, 05:21 AM
Hi,

Check out the following help article.
Extracting key values client-side

Princy.
0
newbie
Top achievements
Rank 1
answered on 23 May 2008, 04:16 PM

I am creating the grid dynamically.

I am using the same base page for creating grids on different pages and pass in the keynames.
The keynames and the number of keys can be different for each page, that is why i wasnted something that would get all the key value pair collection for the selected row.


I knwo with the previous version of the grid we could do something like grid.MasterTableView.SelectedRows[0].KeyValues;

Does prometheus has something like that or I have to get one key at a time by name only?


Tags
Grid
Asked by
newbie
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
newbie
Top achievements
Rank 1
Share this question
or