question on setpopuptemplate
The setpopuptemplate() method only accepts row. So row can equal 1 and you wouldn't know if the source was the header or the cell row 1.
The work around is that when the header is clicked, the following fire:
so, in headermousedown I set a variable:
headerClicked = true
In setpopuptemplate I check to see if headerClicked == true. Now I know the source.
In the headerClicked event, I turn the variable back to false.
var list1 = new AW.UI.List; ... obj.defineTemplate("headerPopup"); obj.setHeaderPopupTemplate(list1); var combo1 = new AW.Templates.Combo; combo1.mapTemplate("popup", "headerPopup"); obj.setHeaderTemplate(combo1, 1, 1);
The call to mapTemplate('from', 'to') redirects template calls from the 'popup' template to 'headerPopup' template. This way you can assign different popup templates to the header, footer and the grid cells.
Thanks, that is a much better solution than mine!
I'll try it out.
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.