3.2.0

Data disappearing/not displayed in IE

Hi,

I've got a grid that I render with AJAX. In Firefox, everything is working fine, the request grabs the data from the backend, sets it with setCellText, and all is well with the world. IE, however, isn't showing any data in the grid. I see the grid headers fine, and when I output the grid code with an alert box, only the first row of data is seems to have been rendered (even though it also isn't showing up in the table). Any ideas what might be going on here?

Here's the relevant code:
if(view == 'list')
{
    arList = Content.getListData();
    
    assetList = Array();
    
    // create grid object
    objGrid = new AW.Grid.Extended;
    
    // assign cells and headers text
    objGrid.setColumnCount(6);
    objGrid.setRowCount(arList['total']);
    objGrid.setCellText(arList['data']);
    objGrid.setHeaderText(arList['headers']);
    
    // set column width
    objGrid.setColumnWidth(175, 0);
    objGrid.setColumnWidth(75, 1);
    objGrid.setColumnWidth(75, 2);
    objGrid.setColumnWidth(100, 3);
    objGrid.setColumnWidth(75, 4);
    
    objGrid.setSelectionMode("multi-row-marker");
    
    objContent = document.getElementById('content_container_frame');
    
    objGrid.setStyle("width", "100%");
    objGrid.setStyle("height", "92%");
    objGrid.setStyle("border", "1px solid #c0c0c0");
    
    // write grid to the page
    objList = document.getElementById('list_table');

    if(objList)
    {
        objList.innerHTML = objGrid;
    }
}


I've even tried a static array of 3 rows for my data and it's still only picking up the first row.

Thanks,
Jason
Jason Lavigne
May 26,
Turns out that my div tag had in-line style, which was causing IE to not display my items.

Bad with IE:
<div style="font-size: 8pt; width: 98%" id="list_table"></div>


Good with IE:
<div id="list_table"></div>


As soon as I removed the in-line style, IE started showing my grid items.

Jason
Jason Lavigne
May 29,

This topic is archived.

See also:


Back to support forum