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

Get value from selected row, populate textbox

1 Answer 169 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bailey Everitt
Top achievements
Rank 1
Bailey Everitt asked on 19 Dec 2008, 02:24 PM
Hi Everyone,

I need to get a specific value (the ID) from a selected row, call a stored procedure passing this ID to obtain a recordset based of this value, then I want to populate these values in controls (textboxes, comboboxes, etc.) in the panel below the grid.  I'd like it so the page doesn't refresh.  I'm currently grabbing the ID from the code below, but this causes the page to refresh.  How do I go about this without a page refresh?  Thanks for any help that you can provide.
        protected void uxRadGridList_SelectedIndexChanged(object sender, EventArgs e) 
        { 
            foreach (GridDataItem item in uxRadGridList.SelectedItems) 
            { 
                int rowID = Convert.ToInt32(item["PrimaryKey"].Text.ToString()); 
            } 
        } 
 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Dec 2008, 08:43 AM
Hi Matthew,

You can either access the key value on the client side or Ajaxify RadGrid using RadAjaxManager which will prevent the flickering.

Shinu
Tags
Grid
Asked by
Bailey Everitt
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or