This is a migrated thread and some comments may be shown as answers.

RadWindow - Inconsistent behaviour

9 Answers 122 Views
Window
This is a migrated thread and some comments may be shown as answers.
Geetha
Top achievements
Rank 1
Geetha asked on 20 May 2009, 07:07 PM
Hi

I have RadWindow that opens up a popup modal dialog from a button and a button in a Radgrid on a given page. It behaves so incosistent.Sometimes one of those buttons bring up the modal. When i hit other button that brings up the same modal ,it does not show up. Then the modal popup stops functioning from any button click. I use Rad ASP Net Ajax Q2 2008. I am brand new to this. I am really bugged by this behaviour.

The code snippet on my page is

<!--Telerik Control for CreateNew.. Telerik Modal window -->

 

<telerik:radwindow ID="ModalPopup" runat="server" Behavior="None"

 

 

ClientCallBackFunction="RefreshList()" Height="600px" Modal="True"

 

 

Width="800px"

 

 

NavigateUrl="~/shared/PopupDialog.aspx?uc=~/Usercontrols/ProgramTypeMaint.ascx"

 

 

OpenerElementID="<%# btnAdd.ClientID %>" VisibleStatusbar="False"

 

 

VisibleTitlebar="False" KeepInScreenBounds="True" Overlay="True"

 

 

Skin="Vista"></telerik:radwindow>

 

This works sometimes and does not popup modal sometimes.

The grid is

 

 

<!-- List Display --->

 

 

 

 

 

 

<asp:Panel runat="server" ID="ResultPnl">

 

 

 

 

 

 

<asp:UpdatePanel runat="server" ID="ListPnl">

 

 

 

 

 

 

<ContentTemplate>

 

 

 

 

 

 

<telerik:RadGrid ID="grdProgramTypes" runat="server" AllowPaging="true"

 

 

AutoGenerateColumns="false" EnableEmbeddedSkins="false" GridLines="None"

 

 

 

 

 

 

Skin="Trizetto" ImagesPath="~/images/RadControls/Grid" Height="100%"

 

 

Width="100%" AllowSorting="true" Visible="false"

 

 

OnItemDataBound="grdProgramTypes_ItemDataBound" PageSize="10"

 

 

 

 

 

 

onneeddatasource="grdProgramTypes_NeedDataSource" >

 

 

 

 

 

 

<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">

 

 

 

 

 

 

<Selecting AllowRowSelect="false" />

 

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

 

<MasterTableView>

 

 

 

 

 

 

<RowIndicatorColumn>

 

 

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

 

 

</RowIndicatorColumn>

 

 

 

 

 

 

<ExpandCollapseColumn>

 

 

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

 

 

<Columns>

 

 

 

 

 

 

<tzg:LocalizableGridBoundColumn ID="Name" HeaderText="Desc" HeaderButtonType="TextButton" DataField="Description"> </tzg:LocalizableGridBoundColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Actions" HeaderButtonType="TextButton" UniqueName="Action">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<asp:ImageButton ID="btnModify" ImageUrl="~/images/editdoc16.gif" runat="server" ToolTip="Click here to edit this record" />

 

 

 

 

 

 

<asp:ImageButton ID="btnDelete" ImageUrl="~/images/delete.gif" runat="server" ToolTip="Click here to delete this record" />

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Width="40px" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

</Columns>

 

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

 

</telerik:RadGrid>

 

 

 

 

 

 

</ContentTemplate>

 

 

</asp:UpdatePanel>

 

 

 

 

 

 

</asp:Panel>

The btn modify also opens up the modal. It is also inconsistent in its behaviour. Looking for some insights asap

Thanks
Geetha

 

9 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 21 May 2009, 02:33 PM
Hello Geetha,

The provided information is not enough for us to determine what might be the reason for the problem. Please open a support ticket and provide the following:
  1. Sample project where the problem can be reproduced. Please make sure that the project can be run locally.
  2. Step-by-step reproduction instructions.
Once we have a better view over your exact setup and logic, we will do our best to help.

Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Geetha
Top achievements
Rank 1
answered on 21 May 2009, 03:00 PM
Hi Georgi
Thanks for your response.  I have to sanitise the code before i send it. So if you can answer the following, I will see if fixing this will fix the rest.

From the Telerik Radgrid, when a button is clicked, i call a javascript function to open up a RAdwindow modal, passing in a url. the script is

var oWnd=window.radopen(null,"ModalPopup") ;
oWnd.setUrl(url);

The radopen statement failed with the following error at runtime.
Microsoft JScript runtime error:Object doesnt support this property or method .

Thanks
Geetha
0
Georgi Tunev
Telerik team
answered on 22 May 2009, 01:41 PM
Hi Geetha,

To use radopen, radalert, radconfirm, radprompt and the other RadWindowManager's functions, you must have a RadWindowManager present on the page from where you call these functions. In your case, you have a RadWindow on the page as a standalone control, hence the problem.
Please either put the RadWindow in a RadWindowManager, or as an alternative - use the ASP.NET AJAX's find() method to get a reference to the RadWindow control and then call its show() method to open it.

Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Geetha
Top achievements
Rank 1
answered on 26 May 2009, 02:18 PM
Hi Georgi

Thanks for the response. I used either of those choices. It did not work for me. Then I had someone else try and it worked. I wanted to try the changes as you suggested once again and see. If I have issues I will let you know. Thanks

Geetha
0
Georgi Tunev
Telerik team
answered on 27 May 2009, 12:23 PM
OK Geetha,

If the problem still persists however, I strongly recommend to send me a support ticket with a sample application that shows the issue that you experience. This way I could work directly on your code and provide you with he most appropriate solution for your case.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Geetha
Top achievements
Rank 1
answered on 27 May 2009, 02:15 PM
Thanks Georgi. I appreciate your support. I will work on it and get back to you with whtever I experience.The one thing I experience is that these controls are touchy. When we add to the page,it works.Certain changes just make them not work and I have deleted and added these controls quite a few times on the page.
0
Geetha
Top achievements
Rank 1
answered on 03 Jun 2009, 06:30 PM
Hi Georgi

I implemented the Rad Window and it works fine in Firefox. In IE, sometimes the modal does not popup. Othertimes it works. If it repeats I will check back with you. Meanwhile I have anothe rproblem. I have a modal that pops up on a button click. I enter inputs and save and close the modal. When i click on the button again, i immediately see the old window hanging around with the data i enetered before and then refreshes with a flash with the new window. I tried to use DestroyOn close. That makes the modal look small and weird the second time on. How do I fix it?

Thanks
Geetha
0
Georgi Tunev
Telerik team
answered on 04 Jun 2009, 07:45 AM
Hello Geetha,

Yo don't need to use DestroyOnClose in such scenario. Just set ShowContentDuringLoad to false and ReloadOnShow to true.

If you still experience problems, please open a support ticket and send me your project.

Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Geetha
Top achievements
Rank 1
answered on 04 Jun 2009, 03:18 PM
Thank you Georgi. It works perfect.
Tags
Window
Asked by
Geetha
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Geetha
Top achievements
Rank 1
Share this question
or