Is it possible to add a hyplink or imagebutton to a custom column within your EO Grid Object?
I would like to provide the same functionality with your grid object that a regular .NET grid object provides.
Example: I have a regular .NET grid object with an ImageButton added within a column in the grid and on the server side in the ItemDataBound event I can add javascript to the control as shown below.
Code: Visual Basic.NET
Private Sub dgrdCritDates_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dgrdCritDates.ItemDataBound
Dim myControl As Control = e.Item.FindControl("ImgDelete")
Try
If Not IsNothing(myControl) Then
Dim js As String
js = "return confirm('Do you really want to delete the record? THIS IS NOT RECOMENDED!!!');"
CType(e.Item.FindControl("ImgDelete"), ImageButton).Attributes("OnClick") = js
End If
Catch exControl As Exception
Session("ERROR") = "Control Find Errors:: " + exControl.Message.Trim
Session("DTLERROR") = exControl.ToString.Trim
Response.Redirect("EDWErrorPage.aspx")
End Try
I can't seem to even declare an image button object within your custom column, the only options I get are for your checkbox, button, editmask, etc.
If I am unclear, please let me know and I will provide more detail.
Thank you,
Darrell