CheckedList with default value
Hello, I´m use a checkedlist and I want to display the items of this checked by default. I try this:
var vect = new Array();
var j=0;
for (j = 0; j < tablaClientes.getCount(); j++){
vect.push(tablaClientes.getData(2,j));
}
//vect has 6 items
chlbClientes.setItemValue(["true","true","true","true","true","true"]);
chlbClientes.setItemText(vect);
chlbClientes.setItemCount(vect.length);
document.write(chlbClientes);
But this data source don´t put items with checked value by default, how can I put the default item value? I want to display checkedlist items with checked value by default.
Thanks.
var vect = new Array();
var j=0;
for (j = 0; j < tablaClientes.getCount(); j++){
vect.push(tablaClientes.getData(2,j));
}
//vect has 6 items
chlbClientes.setItemValue(["true","true","true","true","true","true"]);
chlbClientes.setItemText(vect);
chlbClientes.setItemCount(vect.length);
document.write(chlbClientes);
But this data source don´t put items with checked value by default, how can I put the default item value? I want to display checkedlist items with checked value by default.
Thanks.
Tecnora
April 17,