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

RadWindow - width of content is not being calculated correctly for IE.

3 Answers 71 Views
Window
This is a migrated thread and some comments may be shown as answers.
Brent Hetland
Top achievements
Rank 1
Brent Hetland asked on 24 Feb 2014, 06:36 PM
Hi,

I am using version 2013.3.1114.35 of your ASP.NET for AJAX controls.

I have an aspx page with many RadWindows defined on an aspx page.  There are also many ascx controls on that page, each that contain a lot of Rad Controls.. 

PROBLEM:
In IE 8 and 9, the width on ALL of my RadWindows on this page is being auto-calculated incorrectly.  They now open up much more narrow than they used to.
Also, if I close and reopen the window, the next time they are 10 times wider than they need to be.

MORE INFORMATION
- The windows are sized correctly in FFox and Chrome.

- Turning IE Compatibility View ON seems to help a little, but it doesn't solve the problem and I can't use that as a solution anyway.

- Using the IE dev tools I can see that the RadWindow frame is the correct width.

- However, the table (class="rwTable") within the frame, is the wrong width (looks like it should be width="100%" but there is no width attribute at all).

- These windows have all worked fine for 2 years, until today, when I added a RadTabStrip and a RadMultiPage to one of the ascx files on this page.

- The odd thing though is that the problem is related to specific properties of a RadGrid that is in the RadMultiPage.  This grid, by the way, has always been on this user control and I didn't change it, and the windows have been working fine with it.

- I can make the problem STOP HAPPENING, if I change the following two properties on the grid.
1.  Remove the Skin="Office2007" property.
and
2.  Set AllowPaging="false"

If I either set AllowPaging="true" or set the Skin="Office2007" (but any skin causes it), the window sizing problem occurs again.

To repeat, this grid has been on this control forever, as have the RadWindows, and they've worked fine together and I haven't changed them.  I only added a Tabstrip and MultiPage and put the grid in the multipage...

QUESTION:
I don't expect that you'll be able to solve this right away, but can you please tell me some things to try to help me troubleshoot this or make progress in resolving it?

My RadWindows are simply defined (in the main aspx page) as follows (I show you only two here, but there are actually 7 in my page) :

    <telerik:RadWindowManager ID="radEventModal" runat="server" EnableViewState="false" Modal="true">
        <Windows>
            <telerik:RadWindow EnableViewState="false" runat="server" ID="sustainmentSettings"
                ReloadOnShow="true"
                NavigateUrl="~/default.aspx"
                Behaviors="Close,Move,Reload"
                VisibleStatusbar="false"
                OnClientClose="RefreshGrid"
                Width="965px" Height="430px">
            </telerik:RadWindow>
           <telerik:RadWindow EnableViewState="false" runat="server" ID="homeworkSettings"
                ReloadOnShow="true"
                ShowContentDuringLoad="false" 
                NavigateUrl="~/default.aspx"
                Behaviors="Move,Resize,Reload"
                VisibleStatusbar="false"
                Width="945px" Height="550px"
                OnClientClose="RefreshHomeworkGrid">
            </telerik:RadWindow>
 </Windows>
    </telerik:RadWindowManager>


Thanks,
Brent

3 Answers, 1 is accepted

Sort by
0
Brent Hetland
Top achievements
Rank 1
answered on 24 Feb 2014, 08:55 PM
I wanted to give you a little bit more information.

Another property on the grid that I cannot set to true is the AllowFilteringByColumn.  If I set that to true, the problem with the window sizing also occurs.  So I have to have the two properties I've mentioned set to False, and I cannot use a Skin, or the problem occurs.

I also want to mention that when I set AllowFilteringByColumn to True, styles of other things are goofed up when I visit that page.

For instance, I have two RadMenus who's styles get messed up when I set that grid's AllowFilteringByColumn="true", and those menus aren't even on that page (they are on a master page and on the containing aspx page).

Q.  What is it about the grid, specifically, the grid's properties, that is messing up my RadWindow width and other controls styles???
0
Marin Bratanov
Telerik team
answered on 26 Feb 2014, 11:48 AM
Hi Brent,

It seems like you are hitting IE's stylesheet limitation, so some CSS rules are not honored by IE: http://blogs.telerik.com/aspnet-ajax/posts/10-05-03/internet-explorer-css-limits.aspx.

Since the issue manifests after adding more controls to the page it is likely that the page was already rather complex and had a lot of stylesheets loaded on it. Adding a few more simply pushed it over the IE edge. This is probably what happens with the certain grid settings - adding a pager effectively adds controls to the page - RadComboBox, so it needs stylesheets. So does filtering - adds a ContextMenu.

Thus, the only possible workaround that I know of, is placing a RadStyleSheetManager on the page so that it can combine requests and effectively reduce the number of stylesheets loaded on the page, as explained in the blog post above.


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 UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Brent Hetland
Top achievements
Rank 1
answered on 26 Feb 2014, 12:48 PM
Amazing, you nailed it!  You are "The Man" Marin!  It is a very complex page (many ascx files each with many grids, pageview, tabs, a slider, and tons of other rad controls).

I simply added the RadStyleSheetManager as you suggested and all RadWindows on the controls on that page once again open correctly sized.  So this is solved...

Take the day off, you earned it!

Brent
Tags
Window
Asked by
Brent Hetland
Top achievements
Rank 1
Answers by
Brent Hetland
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or