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

Question about RADGrid Event

1 Answer 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jagat
Top achievements
Rank 1
Jagat asked on 08 Apr 2011, 04:31 PM
Hello,
  I have a RADGRID in which the first column is a GRidButtonColumn and rest of em are GridBoundColumns. Idea being, when I click on the Button(first Column) in the grid, the details of that row(based on the other columns, I am getting other details from the table) should be populated in the dropdowns and textboxes(outside the grid). So I am looking for the event which fires,  when i click the button.

Appreciate the help...
Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Apr 2011, 10:00 AM
Hello Jagat,

You can attach CommandName for GridButtonColumn. Then attach ItemCommand event for RadGrid and in the event handler check for the CommandName and populate the DropDownList. Sample code is given below.


ASPX:

<Columns>
      <telerik:GridButtonColumn  CommandName="Populate" Text="Populate" UniqueName="GridButtonColumn" >
      </telerik:GridButtonColumn>
</Columns>

C#:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == "Populate")
        {
            //populate DropDownList
        }
    }

 

With regards,
Princy
Tags
General Discussions
Asked by
Jagat
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or