:: Forum >> Version 2 >>

combo template not closing in Firefox In non editable mode

Hi,
I followed the fix given. However it seems to work only in editable mode.
When i set the cell to be non editable then it does not work. Is there a way around for this as well?

var CellData = [ 
        [
"aa","H","f","reconciled","qweqw"], 
        [
"bb","H","t","unreconciled","ewq"], 
        [
"cc","H","t","reconciled","rewwer"], 
        [
"cc","H","f","hopeless","11111"], 
        [
"dd","H","f","unreconciled","2222"]
    ]; 

  var 
data1 = ["Email","Phone","FedEX","USPS"];
    var 
data2 = ["reconciled","unreconciled","hopeless"];
    var 
value1 = ["H","O","F","S"];
    var 
list1 = new AW.UI.List;
    
list1.setItemValue(value1);
    
list1.setItemText(data1);
    
list1.setItemCount(data1.length);

    var 
list2 = new AW.UI.List;
    
list2.setItemText(data2);
    
list2.setItemCount(data2.length);

    var 
data3 = new Array();
    
data3["H"]="Email";
    
data3["F"]="Phone";
    
data3["O"]="FedEX";
    
data3["S"]="USPS";

    var 
obj = new AW.UI.Grid;
    
    
    
    
    
obj.setHeaderText("header");
    
obj.setColumnCount(5);
    
obj.setSize(550120);
    
obj.setRowCount(5);
    
    
obj.setCellData(CellData);
    
obj.setCellEditable(true,4);
    
obj.setCellEditable(true,1);
    
obj.setCellEditable(true,0);
    
obj.setCellEditable(true,3);

    
obj.setCellTemplate(new AW.Templates.Combo1);
    
obj.setCellTemplate(new AW.Templates.Combo2);
    
obj.setCellTemplate(new AW.Templates.Input4);

     

    
obj.setPopupTemplate(list11);
    
    
obj.setPopupTemplate(list22);


    
list1.onItemClicked = function(eventindex){

        var 
col this.$0;
        var 
row this.$1;

        var 
value this.getItemValue(index);
        var 
text this.getItemText(index);
        
AW.$popup.hidePopup();

        var 
obj.getCellTemplate(colrow).getContent("box/text");
        
        if (
AW.ie) {
            
e.innerHTML text;
        }
        else {
            
e.value text;
        }
    }
    
    

    
document.write(obj); 
Sandip
Tuesday, April 10, 2007
Also realised that if the cell is editable it does not allow me to set obj.setCellData(valuecolrow);
        
obj.setCellText(textcolrow); 
in the list1.onItemClicked
Because the drop down is editable.

My problem is that i need to update the values of the datasource when modification takes place as i only want the modified rows to be sent to the db finally.

An amazing product btw. It makes life so much intresting.
Sandip
Tuesday, April 10, 2007



This topic is archived.

Back to support forum

Forum search