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

RadAlert won't close with OK in IE

7 Answers 143 Views
Window
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 2
Joe asked on 07 Mar 2012, 10:52 PM
I've tried this in Chrome, FF, and IE and I only see the issue in IE so far.

I've modified the demo http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx to fit with my project. I am using the rowSelected method to call a PageMethod that checks the database for previously entered data.

Based on the results (true/false), if true I'll call the following (with my own message and title of course)
radalert('Radalert is called from the client!', 330, 100, 'Client RadAlert');

The alert box opens when I want it to but I can't get it to close in IE. I click on OK to close the radalert box and nothing happens. The radalert won't close.

However, if I plug the same code above in the

function pageLoad(sender, args)

portion of the page, I can close the radalert and any subsequent radalert boxes can be closed. Basically, in IE I have to open a radalert on pageLoad in order for any other radalert boxes to close when I click OK which is not what I want to do :)

Thoughts?

Thanks,
Joe

7 Answers, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 2
answered on 07 Mar 2012, 11:14 PM
Doing a little more work on this and I am noticing (when using IE) version 9, in Visual Studio 2010, when the radalert firsts opens I see several script block documents in the Solution Explorer (attached pic). On the first load the first 6 of them have 2 single quotes and a semicolon as the content. The last script block document has '<html></html>' as the content.

Everytime I click OK a new script block document is created with void(0) as the content.

I have to close the radalert using the X in the upper right of the alert dialog.

When the next radalert box opens more script documents are created and I can see the following in one of the script block docs:

function onclick(event)
{
$find('alert1331158312324').close(true);
}

I can close the radalert if I see this in one of the script block docs. If I can't find this the radalert doesn't close.

???
0
Marin Bratanov
Telerik team
answered on 09 Mar 2012, 02:09 PM
Hello Joe,

This is the first time such behavior is being reported and I am not aware of a scenario where the scripts from the templates are not output to the page. Can you post here (or in a support ticket) a simple page or code snippets that can reliably reproduce this behavior so that we can investigate it?

I'm afraid I can be of little more assistance before being able to examine this scenario, yet I can suggest a workaround for you - create a RadWindow that is configured to look like an alert (modal, close and move behaviors) and place in its content template the basic alert/confirm template you are using. You only need to slightly modify your JS code to get a proper reference to this RadWIndow (either via $find() or via a radwindowmanager.getWindowByName()) and call its show() and close(argument) methods when needed (i.e. on click of the buttons you will place in the ContentTemplate). This approach will further allow you to execute server code directly by attaching a server handler to the said buttons.


Regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
DAvid
Top achievements
Rank 1
answered on 12 Sep 2013, 09:12 PM
Hi,
Nowadays I have the same problem!!! what can i do for closing radalerts in IE 10??? I need some help urgent, i have tried to change the IE configuration but it didnt work.

cs:

RadWindowManager1.RadAlert(message, 250, 125, title, null, Image);


aspx: 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true"
    Width="300px" OnClientClose="ShowAndRedirect" />

0
Danail Vasilev
Telerik team
answered on 17 Sep 2013, 12:11 PM
Hello David,

I have tried to reproduce the mentioned issue but to no avail. Could you please have a look at the short video test I have done with closing radalert in our online demos under IE10 and then tell me what I am missing?

Could you also confirm whether your version of RadControls is the latest official one - 2013.2.717 and if not does upgrading to it resolve the issue?

If the above information is not helpful, could you please provide a small code snippet that reproduces the issue so that we can make an investigation locally?

Regards,
Danail Vasilev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
DAvid
Top achievements
Rank 1
answered on 17 Sep 2013, 02:01 PM
Well, our version for telerik is 2012.1.215.35, and i have problem in IE 10 with the popups. Additionally, in firefox some RadGrids apeears with a bad design (only apeears one column with no rows). I have tried to change the configuration in the grids and in the popups but it doesnt work. mmm The only thing that i havent done is upgradign version for telerik controls. I will download that and if it works then i will publish the results.

Thanks a lot.

PD: My code ofr radgrids that have problems in the last version in firefox is below:

 <telerik:RadGrid ID="gvLista" runat="server" PageSize="10" AllowSorting="True" EnableEmbeddedSkins="False"
                Skin="Transfer" AllowPaging="True" ShowGroupPanel="false" GridLines="None" OnItemCommand="RadGrid1_ItemCommand">
                <PagerStyle Mode="NumericPages" />
                <MasterTableView Width="100%" GroupLoadMode="Client" TableLayout="Fixed" CommandItemDisplay="Top">
                    <CommandItemSettings ExportToExcelText="Exportar a Excel" ShowExportToExcelButton="true"
                        ShowAddNewRecordButton="false" ShowRefreshButton="false"></CommandItemSettings>
                    <%--  <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                    </ExpandCollapseColumn>--%>
                    <NoRecordsTemplate>
                        <asp:Label ID="lblVacio" runat="server" Text="<%$ Resources:Lenguage, gbl_gvVacia %>" /></div>
                    </NoRecordsTemplate>
                </MasterTableView>
                <ClientSettings AllowGroupExpandCollapse="false" ReorderColumnsOnClient="True" AllowDragToGroup="false"
                    AllowColumnsReorder="True" EnableRowHoverStyle="true">
                    <Selecting AllowRowSelect="false" />
                </ClientSettings>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
                <ExportSettings Excel-Format="ExcelML" ExportOnlyData="true" FileName="BusquedaIntercambios">
                </ExportSettings>
            </telerik:RadGrid>
0
Marin Bratanov
Telerik team
answered on 18 Sep 2013, 10:59 AM
Hi,

Support for IE10 was introduced later in 2012, after the official release of IE10. At this point I strongly advise that you upgrade your RadControls version to see how it behaves on your end with IE10. If this is not possible you an at least add an X-UA Compatible meta tag to for IE into IE9 or IE8 mode to see if this helps. I also advise that you examine this sticky thread on a common MS AJAX issue with IE10.

Additionally, what I see in the code snippet you pasted are the following issues:
- a custom skin is used that may be causing an appearance problem. Can you try using the built-in skins to see how things work with them?
- there is a closing </div> tag in the NoRecordsTemplate that can cause issues with the entire page. I advise validating the page properly for XHTML compliance


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
DAvid
Top achievements
Rank 1
answered on 18 Sep 2013, 01:55 PM
Hi,
We have tried with the version 2013 of telerik controls. Although the problems with pop-ups dissapeared, now we have another problems with the events in the radgrids. Now we have to make a choice about if keep our project over 2012 version or using 2013 version and trying to correct the radgrids issues. 
Well, thanks a lot for your help.
Tags
Window
Asked by
Joe
Top achievements
Rank 2
Answers by
Joe
Top achievements
Rank 2
Marin Bratanov
Telerik team
DAvid
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or