FlexiGrid IE problem (Showing just table headers) - SOLVED

322 views
Skip to first unread message

Rasko

unread,
May 7, 2010, 4:56:02 AM5/7/10
to Flexigrid for jQuery
Hi,

I've tried to figured out why IE7/8 doesn't show results from
flexigrid when on FF all works fine.
After huge time of searching google and trying to debug a code, I've
found in flexigrid.js:

line 852: if (p.width!='auto') g.gDiv.style.width = p.width + 'px';

IE couldn't execute this instruction - doesn't like:
g.gDiv.style.width

In my case I just commented that line and fg on IE works as well as on
FF. So if someone find how to fix it please post the answer for those
who need it.

Regards

--
You received this message because you are subscribed to the Google Groups "Flexigrid for jQuery" group.
To post to this group, send email to flex...@googlegroups.com.
To unsubscribe from this group, send email to flexigrid+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flexigrid?hl=en.

ratiw

unread,
Jun 15, 2010, 10:59:56 AM6/15/10
to Flexigrid for jQuery
try this, change


if (p.width!='auto') g.gDiv.style.width = p.width +
'px';


to this

if (p.width!='auto') {
if (p.width.toString().indexOf('%')>0)
g.gDiv.style.width = p.width;
else
g.gDiv.style.width = p.width + 'px';
}

and, change this

.css({height: (p.height=='auto') ? 'auto' : p.height
+"px"})

to this

.css({height: (p.height=='auto') ? 'auto' : p.height+
(p.height.toString().indexOf('%')>0 ? "":"px")})

It should work on IE, FF, and chrome.

ratiw

unread,
Jun 15, 2010, 10:59:17 AM6/15/10
to Flexigrid for jQuery
sorry, I accidentally clicked 'report spam' link.



On May 7, 3:56 pm, Rasko <patryk.mante...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages