3.2.0

Performance issue

Hi Alex,

I've written to the forum before and got an answers from you promptly, thanks for that. I have been evaluating active widgets as a product that we want to use in out project. We are facing some issues regarding the performance though. One, when i try to scroll down fast the cell values dissapear and it takes about a seccond to reappear. Seccong when the table appears it refuses to let me select a record for long time. Have you ever faced these issues before? Is there a way to improve upon it. These two issues seem to be the last hurdles before we incorporate active widgets.

Also is there a way to drag and drop columns to a new position?

Here's the code im using to create the table

var myCells =[<%

                        StringBuffer record = new StringBuffer();
                        for(int i=0;i<p.size();i++){
                        PObject pobj = (PObject)p.get(i);
                            
                    
                        record.append('"'+pobj.getFirts()+'"'+","
                        +'"'+ppobj.getSeccond()+'"'+","
                        +..............




                        +'"'+ppobj.getlast()+'"'+","
                        );
                        if( i < (p.size() - 1))
                        {
                        %>[<%=record.toString()%>],<%

                        }else{
                        %>[<%=record.toString()%>]<%

                        }
                        record.delete(0,record.length());
                        
                        }
                %>]
                
                var myColumns = ["H1","H2","H3","H4","H5","H6","H7"];
                var grid = new AW.UI.Grid;
                
                grid.setId("myGrid");
 				grid.setSize(650, 200);
            
                
 				grid.setCellText(myCells);
                grid.setHeaderText(myColumns);
                
                grid.setColumnCount(7);
                grid.setRowCount(<%=pSize%>);
                grid.setSelectionMode("multi-row-marker"); // set selection mode to multiple rows with checkboxes
                grid.refresh();
            
                var label = new AW.UI.Label;
                label.setId("myLabel");
                label.refresh();
            
                grid.onSelectedRowsChanged = function(rowIndicesArray){
                    document.getElementById("gridSelection").value = rowIndicesArray; 
                    label.setControlText("rows: [" + rowIndicesArray + "]");
                    this.document.selectedRows.value = rowIndicesArray;
                }



Thanks in advance.


I. Hund
I Hund
May 22,
Try using the Extended grid with virtual rendering
gpachnanda
May 23,
Hi gpachnanda

Thanks for the reply. I was reading through the forum and came across a post that said that the performance of a simple grid is better that that of the Exteded on. Am i wrong.

I Hund
May 24,

This topic is archived.

See also:


Back to support forum