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:GridTemplateColumn
>
ItemTemplate
telerik:RadButton
ID
=
"RadButton1"
runat
"server"
Text
"RowIndex"
OnClientClicked
"RowIndexFind"
/>
</
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
GridDataItem item = e.Item
as
GridDataItem;
RadButton Editbtn = item.FindControl(
)
RadButton;
Editbtn.Attributes.Add(
"rowindex"
, item.ItemIndex.ToString());
}
<script type=
"text/javascript"
function
RowIndexFind(sender, eventArgs) {
var
radGrid = $find(
'<%=RadGrid1.ClientID %>'
);
masterTable = radGrid.get_masterTableView();
row = sender._element.getAttribute(
// Get Row index
</script>