PC Review


Reply
Thread Tools Rate Thread

datagrid with scrollbar browser compatibility problem

 
 
Goffin
Guest
Posts: n/a
 
      4th Aug 2005
Hey

I have an asp.net datagrid width a scrollbar. This scrollbar is placed
using a div-tag around the grid with a style property
overflow:scrolling, a width an a height. This works very well in
Internet Explorer. But when I view the result in Mozilla Firefox, then
there is no scrollbar visible, it show the whole grid. This is not the
result I want.

Has someone had the same problem and can give me an answer?

Greets

 
Reply With Quote
 
 
 
 
Ryan Ternier
Guest
Posts: n/a
 
      4th Aug 2005
Goffin wrote:
> Hey
>
> I have an asp.net datagrid width a scrollbar. This scrollbar is placed
> using a div-tag around the grid with a style property
> overflow:scrolling, a width an a height. This works very well in
> Internet Explorer. But when I view the result in Mozilla Firefox, then
> there is no scrollbar visible, it show the whole grid. This is not the
> result I want.
>
> Has someone had the same problem and can give me an answer?
>
> Greets
>

The main problem is that IE isn't standards compliant (well.. not as
much as FireFox). That is the downfall of IE.

But seeing a Web Developer needs to cater to both those using IE and
those using FireFox you have to be tricky with your Styles.

Use the _ Hack with IE.

so

..MyClass
{
width:40px;
_width:35px;
}

FireFox will use the 40px width, IE will use the 35px. IE ignores the _
where FireFox discards it.

make sure to set the height of the Div.

/RT
 
Reply With Quote
 
Goffin
Guest
Posts: n/a
 
      5th Aug 2005
Thanks for the post, but my problem was that I had placed the style
property in a seperate CSS-file, when I placed it with my HTML-code, my
scrollbar appeared in firefox as well as in IE.

Why I don't no.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrid scrollbar problem Brian Henry Microsoft VB .NET 0 28th Feb 2005 05:06 PM
Datagrid scrollbar problem Marco Microsoft VB .NET 1 9th Sep 2004 08:47 AM
DataGrid Scrollbar problem Ayende Rahien Microsoft ADO .NET 1 10th Nov 2003 06:14 PM
DataGrid Scrollbar problem Ayende Rahien Microsoft Dot NET Framework Forms 1 10th Nov 2003 06:14 PM
DataGrid Scrollbar problem Ayende Rahien Microsoft Dot NET Framework 1 10th Nov 2003 06:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:07 AM.