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
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
"server"
AutoGenerateColumns
"true"
OnNeedDataSource
"RadGrid1_NeedDataSource"
AllowPaging
PageSize
"5"
>
</
protected
void
RadGrid1_NeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
{
dynamic data =
new
[] {
{ ID = 1, Name =
"Name1"
, Stock=20,IsSysAdmin =
true
},
{ ID = 2, Name =
"Name2"
,Stock=30,IsSysAdmin =
false
{ ID = 3, Name =
"Name3"
{ ID = 4, Name =
"Name4"
, Stock=50,IsSysAdmin =
{ ID = 5, Name =
"Name5"
, Stock=60,IsSysAdmin =
{ ID = 6, Name =
"Name6"
, Stock=70,IsSysAdmin =
{ ID = 7, Name =
"Name7"
, Stock=80,IsSysAdmin =
{ ID = 8, Name =
"Name8"
, Stock=90,IsSysAdmin =
{ ID = 9, Name =
"Name9"
, Stock=22,IsSysAdmin =
{ ID = 10, Name =
"Name10"
}
};
RadGrid1.DataSource = data;