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
AI Productivity Tools
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
//Image Button Click
protected
void
ImageButton1_Click(
object
sender, ImageClickEventArgs e)
{
ImageButton img = (ImageButton)sender;
GridDataItem item = (GridDataItem)img.NamingContainer;
string
id = item.GetDataKeyValue(
"ID"
).ToString();
// Access the selected row ID
}
//To open a new Tab
RadGrid1_ItemCreated(
sender, GridItemEventArgs e)
if
(e.Item
is
GridDataItem)
GridDataItem item = (GridDataItem)e.Item;
ImageButton imgbtn = (ImageButton)item.FindControl(
"ImageButton1"
);
imgbtn.Attributes.Add(
"onclick"
,
"document.forms[0].target= '_new';return true;"
// Open a newtab