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

Check ItemCommand for DetailTable

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 29 Jun 2012, 01:58 AM
How can I check InsertCommand name is fired for detailtableviw?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 29 Jun 2012, 04:29 AM
Hi Tina,

Try the following code snippet  for checking whether InsertCommand name is fired for DetailTableview.

ASPX:
<DetailTables>
   <telerik:GridTableView Name="Detail" >
    . . .

C#:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
  if (e.CommandName == RadGrid.InitInsertCommandName && e.Item.OwnerTableView.Name == "Detail")
  {
    //your code for insertion
  
}

Thanks,
Princy.
Tags
General Discussions
Asked by
Tina
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or