Posted on Jan 19, 2012 (permalink)
<
asp:ImageButton ID="btnEditExternalCollaborator" runat="server" ImageUrl='<%# Telerik.Web.SkinRegistrar.GetWebResourceUrl(Me, GetType(RadGrid), "Telerik.Web.UI.Skins.Office2007.Grid.Edit.gif") %>' ToolTip="btnEditExternalCollaboratorTooltip" />
Reply
Posted on Jan 20, 2012 (permalink)
telerik:RadGrid
ID
=
"rgTesting"
runat
"server"
GridLines
"None"
AllowPaging
"True"
CssClass
"RadGrid"
AllowSorting
AutoGenerateColumns
"False"
ShowStatusBar
"true"
OnItemDataBound
"rgTesting_OnItemDataBound"
DataSourceID
"Testfile"
>
MasterTableView
Width
"100%"
CommandItemDisplay
"Top"
DataKeyNames
"ID"
EditMode
"InPlace"
Columns
telerik:GridEditCommandColumn
UniqueName
"EditCommandColumn"
</
telerik:GridBoundColumn
"Name"
HeaderText
DataField
telerik:GridTemplateColumn
ItemTemplate
asp:ImageButton
"btnEditExternalCollaborator"
CommandName
"edit"
ToolTip
"btnEditExternalCollaboratorTooltip"
/>
asp:XmlDataSource
DataFile
"~/XMLFiles/RadCombo.xml"
public
partial
class
TestingUserControl : System.Web.UI.UserControl
{
Page ME=
new
Page();
protected
void
Page_Load(
object
sender, EventArgs e)
}
rgTesting_OnItemDataBound(
sender, GridItemEventArgs e)
if
(e.Item
is
GridDataItem)
GridDataItem DataBound=(GridDataItem)e.Item;
ImageButton btnEditExternalCollaborator = (ImageButton)DataBound.FindControl(
);
btnEditExternalCollaborator.ImageUrl = Telerik.Web.SkinRegistrar.GetWebResourceUrl(ME,
typeof
(Telerik.Web.UI.RadGrid),
"Telerik.Web.UI.Skins.Office2007.Grid.Edit.gif"
Posted on Jan 21, 2012 (permalink)
Protected
Sub
rgTesting_OnItemDataBound(sender
As
Object
, e
GridItemEventArgs)
If
TypeOf
e.Item
Is
GridDataItem
Then
Dim
DataBound
GridDataItem =
DirectCast
(e.Item, GridDataItem)
btnEditExternalCollaborator
ImageButton =
(DataBound.FindControl(
), ImageButton)
btnEditExternalCollaborator.ImageUrl = Telerik.Web.SkinRegistrar.GetWebResourceUrl([ME],
GetType
)
End
Back to Top
[ ASP.NET Grid Features | Documentation | Demos | Step-by-step Tutorial ]
UI controls for ASP.NET AJAX, MVC, WPF,Silverlight, Windows 8 and Windows Phone
Cross-platform Mobile Development Toolwith cloud-based architecture
Everything you need to build sites andmobile apps with JavaScript and HTML5
One easy tool for Functional, Performance,Load and Mobile software testing
Everything for your online business - contentmanagement, ecommerce, emarketing
Simple and intuitive project managementand collaboration software