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_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridPagerItem)
GridPagerItem item = e.Item
as
GridPagerItem;
(item.PagerContentCell.Controls[0].Controls[0].Controls[0].Controls[1]
Panel).Visible =
false
;
}
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
script
runat
=
"server"
>
protected void RadGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
DataTable dt = new DataTable();
DataRow dr;
int colsNum = 4;
int rowsNum = 50;
string colName = "Column";
for (int j = 1; j <= colsNum; j++)
dt.Columns.Add(String.Format("{0}{1}", colName, j));
for (int i = 1; i <= rowsNum; i++)
dr = dt.NewRow();
for (int k = 1; k <= colsNum; k++)
dr[String.Format("{0}{1}", colName, k)] = String.Format("{0}{1} Row{2}", colName, k, i);
dt.Rows.Add(dr);
(sender as RadGrid).DataSource = dt;
</
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
html
xmlns
"http://www.w3.org/1999/xhtml"
head
meta
http-equiv
"content-type"
content
"text/html;charset=utf-8"
/>
title
>RadControls</
style
type
"text/css"
div.RadGrid_Default .rgPager .rgNumPart
display:none;
body
form
id
"form1"
asp:ScriptManager
ID
"ScriptManager1"
telerik:RadGrid
"RadGrid1"
AllowPaging
"true"
OnNeedDataSource
"RadGrid_NeedDataSource"