3.2.0

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(550, 120);
    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.Combo, 1);
    obj.setCellTemplate(new AW.Templates.Combo, 2);
    obj.setCellTemplate(new AW.Templates.Input, 4);

     

    obj.setPopupTemplate(list1, 1);
    
    obj.setPopupTemplate(list2, 2);


    list1.onItemClicked = function(event, index){

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

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

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

    document.write(obj);
Sandip
April 10,
Also realised that if the cell is editable it does not allow me to set
obj.setCellData(value, col, row);
        obj.setCellText(text, col, row);

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
April 10,

This topic is archived.

See also:


Back to support forum