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
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
"server"
/>
telerik:RadGrid
"RadGrid1"
OnNeedDataSource
"RadGrid_NeedDataSource"
>
MasterTableView
ItemStyle
CssClass
"item-style"
AlternatingItemStyle
</
<style type=
"text/css"
.RadGrid tr.item-style
{
background
: yellow;
}
.RadGrid .item-style td
padding-top
:
0
;
padding-bottom
height
150px
vertical-align
middle
</style>
protected
void
RadGrid_NeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
DataTable table =
new
DataTable();
table.Columns.Add(
"ID"
);
"Name"
table.Rows.Add(
[] {
"1"
,
"John"
});
"2"
"Antony"
"3"
"James"
"4"
"Jim"
RadGrid1.DataSource = table;