3 Answers, 1 is accepted
0
Accepted
Shinu
Top achievements
Rank 2
answered on 11 May 2009, 04:33 AM
Hi Steve,
Try the following code snippet and see whether it is working as you expected.
CS:
Thanks,
Shinu.
Try the following code snippet and see whether it is working as you expected.
CS:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
{ |
if (e.Item is GridEditableItem && e.Item.IsInEditMode) |
{ |
foreach (GridFilteringItem filterItem in RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)) |
{ |
filterItem.Visible = false; |
} |
} |
} |
Thanks,
Shinu.
0
MCM Net
Top achievements
Rank 1
answered on 13 May 2009, 09:51 AM
Excellent, thanks Shinu, that worked perfectly!
0
Alessandra C
Top achievements
Rank 1
answered on 22 Feb 2010, 09:11 AM
Sorry for resuming such an old thread but I found a solution that works also for hierarchical grids and maybe can be usefull to someone else :)
Sorry for my bad english, bye
Alessandra
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e) |
{ |
if ((e.CommandName == RadGrid.EditCommandName) || (e.CommandName == RadGrid.InitInsertCommandName)) |
e.Item.OwnerTableView.AllowFilteringByColumn = false; |
else |
e.Item.OwnerTableView.AllowFilteringByColumn = true; |
} |
Sorry for my bad english, bye
Alessandra