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"
OnNeedDataSource
"RadGrid1_NeedDataSource"
>
MasterTableView
AutoGenerateColumns
"false"
Columns
telerik:GridBoundColumn
DataField
"SellQuantity"
></
telerik:GridTemplateColumn
ItemTemplate
telerik:RadButton
"RadButton1"
Text='<%# ((int)Eval("ID") == 2) ? "OK": "Cancel" %>' />
</
protected
DataTable GetData()
{
DataTable dt =
new
DataTable();
dt.Columns.Add(
"ID"
,
typeof
(
int
));
"SellDate"
(DateTime));
dt.Rows.Add(1, 2,
DateTime(2011, 06, 12));
dt.Rows.Add(2, 5,
DateTime(2011, 12, 12));
dt.Rows.Add(3, 6,
DateTime(2012, 06, 17));
dt.Rows.Add(4, 4,
DateTime(2012, 09, 18));
dt.Rows.Add(5, 7,
DateTime(2013, 03, 18));
return
dt;
}
void
RadGrid1_NeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
RadGrid1.DataSource = GetData();
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.