This is a migrated thread and some comments may be shown as answers.
RadWindow not poping up.
1 Answer 25 Views
This is a migrated thread and some comments may be shown as answers.
Shehab
Top achievements
Rank 1
Shehab asked on 21 Oct 2008, 06:33 PM
Hi All,

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

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 22 Oct 2008, 07:47 AM
Hello Shehab,

You can go through the following forum link which discusses a similar scenario. The built-in ajax of the grid probably prevents the window from rendering on the page.
How to open RadWindow from Server Event of Ajax Enabled RadGrid

Thanks
Princy.



Asked by
Shehab
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or