Multiple query string parameters from Radgrid

8 posts, 0 answers
  1. Debashis Pyne
    Debashis Pyne avatar
    66 posts
    Member since:
    Apr 2010

    Posted 08 Jul 2010 Link to this post

    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

  2. Debashis Pyne
    Debashis Pyne avatar
    66 posts
    Member since:
    Apr 2010

    Posted 09 Jul 2010 Link to this post

    Guys,

    Any ideas on this?

    Thanks
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Debashis Pyne
    Debashis Pyne avatar
    66 posts
    Member since:
    Apr 2010

    Posted 09 Jul 2010 Link to this post

    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.
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Jul 2010 Link to this post

    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
  6. Debashis Pyne
    Debashis Pyne avatar
    66 posts
    Member since:
    Apr 2010

    Posted 13 Jul 2010 Link to this post

    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.
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Jul 2010 Link to this post


    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
  8. Debashis Pyne
    Debashis Pyne avatar
    66 posts
    Member since:
    Apr 2010

    Posted 13 Jul 2010 Link to this post

    Hi,

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

    Thanks.;
  9. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 14 Jul 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017