:: Forum >> Version 2 >>

Footer not updating when using 'list.onItemClicked'

I'm using a Footer in my Grid with a popup template and when I click on an item it doesn't appear in the combo box. Here is my code:

var obj = new AW.Grid.Extended;

obj.setFooterCount(1);
obj.setFooterVisible(true);
obj.setFooterTemplate(new AW.Templates.Combo2);

obj.setPopupTemplate(function(colrow)
{
   var list = new 
AW.UI.List;
   list.
setId("ComboList");

   list.
setItemText(arrayList);
   list.
setItemCount(arrayList.length);


   list.
onItemClicked = function(eventi)
   {
      
strNewResource this.getItemText(i);
      
obj.setFooterText(strNewResource20); //not working!

      
obj.getFooterTemplate(20).hidePopup();
   };

   return list;
});

 
Cheers in advance.
Andy M
Tuesday, January 9, 2007
Scrap that I've used a different approach!
Andy M
Tuesday, January 9, 2007
It's still not working, basically I have two combo boxes - one in a header, one in a footer. If I try to get a value from the header it works fine but if I try to get a value from the footer it returns a blank value every time.

var cmbFooterCombo.getSelectedItems();
var 
cmbHeaderCombo.getSelectedItems();

alert("i=" " j=" j);
 
After selecting the first item in each list I get the message "i= j=1"
Andy M
Tuesday, January 9, 2007



This topic is archived.

Back to support forum

Forum search