Hi All -- I've got a RadGrid with a Button on it that is supposed to launch a RadWindow using radopen, but doesn't seem to be doing the trick. I've followed some of the tutorials on the site, but just having absolutely no luck. Here's what I've got so far:
.ASPX
Code Behind
.ASPX
<script type=
"text/javascript"
>
function
openWin() {
radopen(
null
,
"RadWindow1"
);
}
</script>
Code Behind
Private
Sub
RadGrid1_ItemDataBound(sender
As
Object
, e
As
Telerik.Web.UI.GridItemEventArgs)
Handles
RadGrid1.ItemDataBound
If
TypeOf
e.Item
Is
Telerik.Web.UI.GridDataItem
Then
Dim
dataItem
As
Telerik.Web.UI.GridDataItem =
DirectCast
(e.Item, Telerik.Web.UI.GridDataItem)
Dim
btnImage
As
Button =
DirectCast
(dataItem(
"column2"
).Controls(0), Button)
btnImage.Attributes.Add(
"OnClick"
,
"openWin(); return false;"
)
End
If
End
Sub