I've got a radgrid that has an OnInsertCommand defined (along with OnItemCommand). I've tried e.Item.Expanded = false from the OnInsertCommand, and it doesn't seem to respond. I've even tried looping through items in the MasterTableView and Expanded=false all of them, and no dice.
Any ideas on how to collapse the insert form from OnInsertCommand programmatically?
Thanks in advance!
tried:
Also tried
but it doesn't even fire that event for whatever reason.
Also tried doing a hard DataBind(), but the control keeps the state (leaves the item insert form open). WTF
Any ideas on how to collapse the insert form from OnInsertCommand programmatically?
Thanks in advance!
tried:
foreach (GridDataItem i in e.Item.OwnerTableView.Items) |
i.Expanded = false; |
e.Item.Expanded = false; |
RadGrid1.Rebind(); |
Also tried
protected void RadGrid1_OnItemInserted(object sender, GridInsertedEventArgs e) |
{ |
e.KeepInInsertMode = false; |
} |
but it doesn't even fire that event for whatever reason.
Also tried doing a hard DataBind(), but the control keeps the state (leaves the item insert form open). WTF