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

Grid does not render correctly in WPF WebBrowser control

2 Answers 235 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tor
Top achievements
Rank 1
Tor asked on 25 Jan 2013, 06:59 PM
I have noticed an error with the rendering of the Kendo grid in WPF web browser controls if remote virtualization is enabled.
The issue is that the columns are not rendered with the same width as the column headers (see screenshot).
This behavior is not observed in normal web browsers (IE 8/9, Chrome, Firefox), just when the web browser control is hosted in a WPF application. It seems to be tied to grids with remote virtualization enabled. 

I am seeing this in my own application, but for demonstration purposes I've created a simple WPF example app.

I have attached the sample wpf application (pointed the browser to your remote virtualization online demo), as well as a screenshot of your demo page when hosted inside the sample application.

It appears to have something to do with the presence of the IE specific meta tags inside the page head element:
 
<meta http-equiv="X-UA-Compatible" content="IE=edge">

Tor

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 28 Jan 2013, 09:03 AM
Hello Tor,

It seems that WPF WebBrowser  control doesn't emulate real browser behavior. I would suggest you to force the emulate using latest IE browser version which seems to solve the problem. Here are few posts regrading how to achieve this:
http://www.west-wind.com/weblog/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version
http://stackoverflow.com/questions/10402813/wpf-webbrowser-browser-version
http://stackoverflow.com/questions/4612255/regarding-ie9-webbrowser-control

What I did to test is create a new DWORD Value for the application as described in first link(location for the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION) with value of 270F. This forces the WebBrowser control to emulate IE9.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tor
Top achievements
Rank 1
answered on 28 Jan 2013, 03:09 PM
Yes, this seems to do the trick
Thanks
Tor
Tags
Grid
Asked by
Tor
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Tor
Top achievements
Rank 1
Share this question
or