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

Multiple query string parameters from Radgrid

7 Answers 155 Views
Window
This is a migrated thread and some comments may be shown as answers.
Debashis Pyne
Top achievements
Rank 1
Debashis Pyne asked on 08 Jul 2010, 04:31 PM
Hi,

I have a Radgrid which has an edit button. On click this opens a RadWindow which has a seperate aspx page.
To open this RadWindow, I have been the below mentioned code to show data in the RadWindow:

function ShowEditForm(id, rowIndex) {
var grid = $find("<%= grdStoryList.ClientID %>");

var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
grid.get_masterTableView().selectItem(rowControl, true);

window.radopen("StoryObservedTypePopup.aspx?Id=" + id, "UserListDialog");
return false;
}

I would like like multiple query string via:
window.radopen("StoryObservedTypePopup.aspx?Id=" + id, "UserListDialog");

These new query string parameters are columns in the radgrid itself.

Can any one please suggest?

Thanks

7 Answers, 1 is accepted

Sort by
0
Debashis Pyne
Top achievements
Rank 1
answered on 09 Jul 2010, 07:45 AM
Guys,

Any ideas on this?

Thanks
0
Debashis Pyne
Top achievements
Rank 1
answered on 09 Jul 2010, 09:16 AM
Hi,

Forgot to mention this, I am the below mentioned code in the C# to fill the parameters:

protected void grdActionList_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            HyperLink editLink = (HyperLink)e.Item.FindControl("EditLink");
            editLink.Attributes["href"] = "#";
            editLink.Attributes["onclick"] = String.Format("return ShowEditForm('{0}', '{1}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Story_Id"], e.Item.ItemIndex);
        }
    }

Thanks.
0
Georgi Tunev
Telerik team
answered on 13 Jul 2010, 11:01 AM
Hello Debashis,

The code that you posted looks OK and I am not sure what exactly is the problem. Could you please provide more details?

Regards,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Debashis Pyne
Top achievements
Rank 1
answered on 13 Jul 2010, 11:22 AM
Hi,

Through the code above - I can actually send 1 query string.
Please refer to the line below:
window.radopen("StoryObservedTypePopup.aspx?Id=" + id, "UserListDialog");

The above code supports only a single parameter, i.e. Id. However I would like to send multiple parameters.
Please let me know if this makes any sense.

Thanks.
0
Georgi Tunev
Telerik team
answered on 13 Jul 2010, 01:47 PM

You can do that in the same way that you would do it with a standard popup -
window.radopen("StoryObservedTypePopup.aspx?Id=" + id + "&arg2=" + arg2 + "&arg3=" + arg3, "UserListDialog");


Greetings,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Debashis Pyne
Top achievements
Rank 1
answered on 13 Jul 2010, 02:34 PM
Hi,

Ok - that is fine.
I was wondering how I actually could trap the column data - that needs to be passed as parameters.

Thanks.;
0
Georgi Tunev
Telerik team
answered on 14 Jul 2010, 05:45 AM
Hello Debashis,

I would suggest to check RadGrid's client-side section in the documentation - I believe it will be of help.


Best wishes,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Debashis Pyne
Top achievements
Rank 1
Answers by
Debashis Pyne
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or