All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Hello,
I have a grid that uses "EditForms" to edit a record. What I would like to achieve is to disable filtering while the grid is in edit mode (both for adding a new record or editing an existing one)
Thank you,
Marc
UPDATE:
I found this code:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridEditableItem && e.Item.IsInEditMode) { RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0].Visible = false; } }
It works, however... I would like it to work as well when I expand the detail table.
Please advise.
I found a solution that seems to work:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item.OwnerTableView.Name == "ChildID") { if (e.Item.Expanded) RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)(0).Visible = false; } }