Hi,
I have a RadGrid with an EditItemTemplate and a DetailTable. I would like for the detail to be displayed when I edit an item, and have the following code in my ItemCommand event:
But when I click edit, the form is displayed but the item does not expand. I have checked that no other code is being executed that might do a Rebind().
Any reason this might be happening?
ROSCO
I have a RadGrid with an EditItemTemplate and a DetailTable. I would like for the detail to be displayed when I edit an item, and have the following code in my ItemCommand event:
switch
(e.CommandName)
{
case
RadGrid.EditCommandName:
e.Item.OwnerTableView.IsItemInserted =
false
;
e.Item.Expanded =
true
;
break
;
case
RadGrid.InitInsertCommandName:
// Cancel any edit form
foreach
(GridItem item
in
e.Item.OwnerTableView.Items)
{
if
(item
is
GridEditableItem)
{
GridEditableItem ei = item
as
GridEditableItem;
ei.Edit =
false
;
}
}
break
;
default
:
break
;
}
But when I click edit, the form is displayed but the item does not expand. I have checked that no other code is being executed that might do a Rebind().
Any reason this might be happening?
ROSCO