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
AI-Enhanced UI Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
How can I find the row index for a Rad grid? I want to pass the row index and 'this' to a javascript function to toggle the checkboxes on my rad grid from telerik.
Something like this: onClick="Checkbox(this, rowindex);"
<
telerik:GridTemplateColumn
>
ItemTemplate
asp:CheckBox
ID
=
"CheckBox1"
runat
"server"
/>
</
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
GridDataItem gd=(GridDataItem)e.Item;
CheckBox chk = (CheckBox)gd.FindControl(
);
int
index = gd.ItemIndex;
chk.Attributes.Add(
"OnClick"
,
"Click('"
+ index +
"','"
+chk.ClientID+
"')"
}
<script type=
"text/javascript"
function
Click(id, checkid)
alert(id);
</script>