Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
AI-Enhanced UI Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
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; } }