Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(RadGrid1.PageCount ==1 && e.Item
is
GridFilteringItem )
GridFilteringItem gfItem = (GridFilteringItem)e.Item;
gfItem.Visible =
false
;
}
protected void RadGrid1_ItemEvent(object sender, GridItemEventArgs e)
if (e.EventInfo is GridInitializePagerItem)
int allRowsCount = (e.EventInfo as GridInitializePagerItem).PagingManager.DataSourceCount;
if ((allRowsCount < 11) && RadGrid1.MasterTableView.FilterExpression=="")
RadGrid1.AllowFilteringByColumn = false;
if ((allRowsCount <= RadGrid1.PageSize) && RadGrid1.MasterTableView.FilterExpression=="")