iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I'm having an issue using WebGrid version 7.0.7200.430 with IE8 when running in IE7 compatibility mode in my company's intranet environment. The headings don't align with the data.
My company's standard for the intranet is IE8 running in IE7 compatibility mode so, even though I use the meta tag <meta http-equiv="X-UA-Compatible" content="IE=8"/> in my Site.Master, IE8 continues to run in IE7 compatibility mode.
Everything works great except the column alignment in the WebGrid. Is there a work-around for this issue?
Thanks,
James Hartley
Thanks, Karl - that's a neat idea. In my own code I have stuck with the XHTML doctype but have removed the <meta http-equiv="X-UA-Compatible" content="IE=8"/> tag from my master page. I had to change a few of my styles to get my layout to appear properly in IE8 when running in IE7 compatibility mode, but now it's working okay.
Martin, I wouldn't say the issue is fixed exactly, but there are acceptable workarounds. Feel free to mark the issue as closed.
James
Hello James,
I've successfully replicated your issue on my end. The issue is gone when you set the DocumentMode to Quirks mode.
I'm forwarding this issue to the developer team to be investigated further.
I will let you know when I get any feedback/workaround from them.
Thank you.
Regards,-Martin-
Hello,
I suggest you to use the following XHTML DocType
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
I believe it works on your environment.
Hi Martin,
Thanks for your replies. Unfortunately I am already using the exact doctype you mention in your second email. As for quirks mode (which I enabled temporarily by removing the doctype altogether) it has no effect while I have the <meta http-equiv="X-UA-Compatible" content="IE=8"/> tag in place. If I also take out the meta tag then the grid is okay but the rest of my CSS styling goes crazy.
I'm attaching my sample including the meta setting and DocType. Please try to run the sample on your end and see how the result is.
However, could you explain your issue in more details? So, when you run the project using IE8 browser, do you change the Document Mode to IE7 compatibility / change the Browser Mode to IE7 Compatibility? Can you provide a screenshot of your developer tools along with your project?
I'm running the project and by default, it will open the project using Browser Mode as IE8 and Document Mode to IE8 standards (as you can see in Grid1.png attached).
Then, I change the Browser Mode to IE7 and Document Mode to IE 7 standards (as you can see in Grid2.png).
I don't have IE7 compatibility option in my developer tools.
Thanks for your reply. I have run your sample file and am still getting the same issue. I’ve zipped up and attached the sample project I was testing with along with some screen shots.
I don’t have any special CSS debugging tools for IE, only straight VS 2008, although I have some JavaScript that gives me browser info (click “Browser Info” button in sample app or see screen shots).
I will try to explain more clearly what the problem is:
To summarize, if I have the meta tag in place, the WebGrid does not work but the WebCombo does work; if I take out the meta tag the WebGrid works but the WebCombo does not work.
I would prefer a solution that fixes the WebGrid in Compatibility Mode/DocMode 8 (see browser info screen shots), but if you can tell me a way to fix the WebCombo in Compatibility Mode/DocMode 7 that would be fine (please see the sample app’s JavaScript code for how “Compatibility Mode” is determined in these pop-ups).
Hope this helps!
I have tested your project here. The grid's heading was misaligned too on my end.
So the point is, WebGrid needs to be able to run under IE8 Compatibility view per your requirement. Is this correct?
Therefore, I will need to discuss further about this issue with the developer team.
I will let you know the progress as soon as possible.
Martin wrote:
"So the point is, WebGrid needs to be able to run under IE8 Compatibility view per your requirement. Is this correct?"
Yes, that's correct. Thanks for your help.
Your issue has been submitted to the developert team.
Hopefully, they can come up with a solution as soon as possible.
Thank you for your patient.
I just got the update from the developer team.
Currently our products including WebGrid is not designed for compatibility view because it’s IE specific stuff. Our tools basically render the pages based on the specified document type. However, the compatibility mode causes the rendering to use old browser mode while our library still consider it as XHTML.
Therefore, they highly suggest the users to use pure standards mode and leave the compatibility view for best results.
Hope this helps. Thank you.
Thanks for your reply. I will work around the problem.
I've also had similar problems and have given up on XHTML doctype for IE versions prior to 8. I think mainly when I have colum autosizing on or if using the grid refresh funciton things don;t line-up or fit properly.
If I detect browser is IE and version 7 or less I change doctype to
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
then it renders ok in IE 5.5, 6 or 7.
It's not ideal as this will cause rendering differences if you use float and css auto margins in places.
my pages all inherit this class:
Public Class TemplatePage
Inherits System.Web.UI.Page
Sub Page_PreInit(ByVal sender As Object, ByVal e As EventArgs) _
Handles Me.PreInit
If Request.Browser.Browser = "IE" Then
If Convert.ToDecimal(Request.Browser.Version) < 8.0 Then
Me.MasterPageFile = "~/Site_html4.0.master"
End If
End Sub
End Class
Does it mean your issue is solved when you are using XHTML DocType?
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname