Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI/UX Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
<telerik:RadCodeBlock ID=
"RadCodeBlock1"
runat=
"server"
>
<script type=
"text/javascript"
function
ButtonClick() {
var
grid = $find(
"<%=RadGrid1.ClientID %>"
);
MasterTable = grid.get_masterTableView();
Rows = MasterTable.get_dataItems();
for
(
i = 0; i < Rows.length; i++) {
row = Rows[i];
alert(row.getDataKeyValue(
'ID'
));
}
</script>
</telerik:RadCodeBlock>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
OnNeedDataSource
"RadGrid1_NeedDataSource"
MasterTableView
DataKeyNames
"ID"
ClientDataKeyNames
Columns
telerik:GridBoundColumn
DataField
"Name"
HeaderText
</
br
/>
asp:Button
"Button1"
Text
"Button"
OnClientClick
"return ButtonClick(); return false;"
protected
void
RadGrid1_NeedDataSource(
object
sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
dynamic data =
new
[] {
{ ID = 1, Name =
"name1"
},
{ ID = 2, Name =
"name2"
{ ID = 3, Name =
"name3"
{ ID = 4, Name =
"Name4"
{ ID = 5, Name =
"name5"
}};
RadGrid1.DataSource = data;