I just have an issue with the RadWindow not opening ffrom a linkbutton inside a datagrid, here is the HTML:
<
radG:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" EnableAJAX="True" GridLines="None" Skin="Blue">
<MasterTableView>
<Columns>
<radG:GridTemplateColumn UniqueName="TemplateColumn">
<ItemTemplate>
<asp:LinkButton ID="btnViewCard" runat="server" OnClick="OpenCard">Show Card</asp:LinkButton>
</ItemTemplate>
</radG:GridTemplateColumn>
<radG:GridBoundColumn DataField="CardID" Display="False" HeaderText="CardID"
ReadOnly="True" UniqueName="CardID">
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Sender" HeaderText="Sender" UniqueName="Sender" ReadOnly="True">
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="SenderPhone" HeaderText="Sender Phone" UniqueName="SenderPhone">
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="SenderEmail" HeaderText="Sender Email" UniqueName="SenderEmail">
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="PatientName" HeaderText="Patient Name" UniqueName="PatientName">
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="PatientRoom" HeaderText="Patient Room" UniqueName="PatientRoom">
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="HospitalName" HeaderText="Hospital Name" UniqueName="HospitalName">
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Message" HeaderText="Message" UniqueName="Message">
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="SubmitDate" HeaderText="Submit Date" UniqueName="SubmitDate">
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="Notes" HeaderText="Notes" UniqueName="Notes">
</radG:GridBoundColumn>
<radG:GridBoundColumn DataField="imgURL" HeaderText="imgURL" UniqueName="imgURL" Display="False">
</radG:GridBoundColumn>
</Columns>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="False">
<HeaderStyle Width="19px" />
</ExpandCollapseColumn>
</MasterTableView>
</radG:RadGrid>
And here is the vb.net:
Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.WebControls.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
Dim getDS As New DataSet
getDS = dataConn.GetAllNewCards()
RadGrid1.DataSource = getDS.Tables(0).DefaultView
End Sub
Public Sub OpenCard(ByVal sender As Object, ByVal e As System.EventArgs)
RadWindow1.VisibleOnPageLoad =
True
RadWindow1.NavigateUrl = "CardEditor.aspx"
End Sub
What am I doing wrong,
Thank,
Shehab