Here are a couple of annoying DataSheet issues I came across today while getting a SharePoint 2007 extranet site ready for one of our clients.
1) Fix Datasheet View background color
In our custom css file, the body background color is set to:
body { background-color : #3a73ba ; }
Which makes the Datasheet look horrible:
I found a solution for this on Erik Swenson’s blog. I changed the background color to white (this fixes the Datasheet), and moved the #3a73ba background color to the form tag. Here’s the new CSS:
body { background-color : #fff ; }
form#aspnetForm { background-color : #3a73ba ; }
|
Datasheet view with corrected background color:
2) Edit in Datasheet causes IE to crash
IE hangs for a very long time; I’ve seen it become responsive again after waiting forever, but most people won’t. If you don’t mind modifying the source files to fix this, go to:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\core.js
And change:
var lGCWindowHeight=document.documentElement.scrollHeight;
|
to:
var lGCWindowHeight=(document.documentElement.scrollHeight>document.documentElement.clientHeight) ? document.documentElement.clientHeight : document.documentElement.scrollHeight;
|
|
No comments:
Post a Comment