3.2.0

create morethan one chechbox in AW2.5

Hi all i am using checkbox in the grid. but it seems working for 568 rows in ie and 3600 in mozilla finely.when record count beyond that levels the grid not displaying and it shows some javascript error both in IE and mozilla.Below here i snipped my code to create morethan one checkbox in the grid, pls anyone spot me what i made the mistakes in the code

var chkbox;
for(var i=0;i<myCells.length;i++)
{
    chkbox= new AW.UI.Checkbox;
    chkbox.setId("chk"+i);
    chkbox.setControlText(""); 			
    table.setCellTemplate(chkbox,0,i);
    chkbox= "";
}
sabi
October 13,
You should use the AW.Templates.Checkbox instead -

var chkbox = new AW.Templates.Checkbox;

and assign the template to all cells in one column -

table.setCellTemplate(chkbox, 0);
Alex (ActiveWidgets)
October 14,
Alex,
By using above code also doesn't let me create more than limited checkbox.
Sabi
October 16,
for(var i=0;i<myCells.length;i++){ 
alert(myCells.length);
......
October 16,

This topic is archived.

See also:


Back to support forum