Hi Alex,
Thanks for the response. I just saw it couple days ago, and have been trying to do the corresponding updates.
This is the former piece of code I had:
var header = new Active.Templates.Header;
header.setEvent("onmousedown", function(event){
if (event.button == 2 ) {
//showmenu(event,cmenu);
}
else {
this.setClass("header", "pressed");
this.timeout(function(){this.action("columnSort")});
}
});
grid.setTemplate("top/item", header);
I changed it as follows:
var header = new AW.Grid.Header;
/*
header.setEvent("onmousedown", function(event){
if (event.button == 2 ) {
//showmenu(event,cmenu);
}
else {
this.setClass("header", "pressed");
this.timeout(function(){this.action("columnSort")});
}
});
*/
grid.setTemplate("top/item", header);
And I stated getting the following error, both before and after I commented out the 'header.setEvent' code block:
this[set] is not a function
http://>server>/scripts/ActiveWidgets/runtime/lib/aw.js
Line 26
I'm not sure what the issue is here. Am I selecting the wrong function to set my headers?