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

RadGrid behaves different when published

2 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guenni
Top achievements
Rank 1
Guenni asked on 04 Mar 2010, 01:37 PM
Hello,
My radgrid is cut in half when I publish my website on the server. Locally the grid uses the full width, like it should.
I used the same browser and the code is the exact same. I attached two images that illustrates the grid in the two different scenarios.
What's causing this strange behavior?

2 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 08 Mar 2010, 05:48 PM
Hi Guenni,

This may be the result of IE (if you are viewing it in IE) displaying sites from localhost in compatibility mode automatically. Try setting the MasterTableView.Width to 100%.

Best wishes,
Veli
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kevin Donahue
Top achievements
Rank 1
answered on 30 Apr 2010, 12:27 AM
Wow, I was looking for a solution to this for a few days now.  I couldn't figure out why my RadMenu worked so differently when I ran my web application through development studio as opposed to publishing it and running it.  When you run it through local host, the compatability mode is set to IE 8 (if that is the version of IE you are using).  However when I published it, it was under IE 7.

I figured it out by running this line of javascript:

alert(document.documentMode);

It was showing a value of 8 when run through localhost, and a value of 7 from my published web application.

Anyway, I resolved the issue by adding this meta tag into my master page:

<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=100" />
    ...
</head>

Hope this helps others.
Tags
Grid
Asked by
Guenni
Top achievements
Rank 1
Answers by
Veli
Telerik team
Kevin Donahue
Top achievements
Rank 1
Share this question
or