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
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
GridDataItem item=(GridDataItem)e.Item;
LinkButton lnkBtnDelete = (LinkButton)item[
"AutoGeneratedDeleteColumn"
].Controls[0];
lnkBtnDelete.Attributes[
"onclick"
] =
"javascript:return confirm(\'Do you want to delete this item?\')"
;
}
Protected
Sub
rg_DECsFiles_ItemCreated(
ByVal
sender
As
Object
,
e
GridItemEventArgs)
Handles
rg_DECsFiles.ItemCreated
If
TypeOf
e.Item
Is
GridDataItem
Then
Dim
item
GridDataItem =
DirectCast
(e.Item, GridDataItem)
deleteBtn
LinkButton =
(item.FindControl(
"AutoGeneratedDeleteButton"
), LinkButton)
deleteBtn.Attributes.Add(
"return confirm('Are you sure you want to delete this row or record?')"
)
End