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

Display issue when client resize.

3 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Maxime
Top achievements
Rank 1
Maxime asked on 20 Aug 2012, 09:51 AM
Hi all,

Here it is :

I use JavaScript to resize on client side a "div" element which contain a RadGrid, and another one which contain a RadChart.
Here is my JS function :

function ToggleDiv(Flag)
{
    if (Flag == "first")
    {
        document.getElementById('gridZonesLosses').style.display = 'block';
        document.getElementById('chartZonesLosses').style.display = 'none';
        document.getElementById('gridZonesLosses').style.width = "100%";
    }
    else
    {
        document.getElementById('chartZonesLosses').style.display = 'block';
        document.getElementById('gridZonesLosses').style.width = "17%";
        document.getElementById('gridZonesLosses').style.cssFloat = "left";
        document.getElementById('gridZonesLosses').style.display = 'block';
        document.getElementById('chartZonesLosses').style.width = "82%";
    }
}

It show and hide perfectly my components, and do the resize.
But when it perform it,  there is some issues with FireFox 13.0. The horizontal scrollbar is not adapted to the new radgrid size, except if i refresh the page by cliking on a button or just execute an AJAX request. Please find in attachment 2 printscreen of the issue and the way it appears.

Any solution ?

3 Answers, 1 is accepted

Sort by
0
Maxime
Top achievements
Rank 1
answered on 22 Aug 2012, 08:17 AM
Hi,

Still working on it, and it seems to be OK for IE9 only.

Regards,
Maxime.
0
Accepted
Galin
Telerik team
answered on 23 Aug 2012, 10:38 AM
Hi Maxime,

You should repaint the RadGrid after resizing and hiding the elements.

I hope this helps

Regards,
Galin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Maxime
Top achievements
Rank 1
answered on 23 Aug 2012, 11:52 AM
Hi,

Many thanks, that worked :)

Regards,
Maxime.
Tags
Grid
Asked by
Maxime
Top achievements
Rank 1
Answers by
Maxime
Top achievements
Rank 1
Galin
Telerik team
Share this question
or