Last colum-header clicked (when sort disabled)
Hi,
I did this "really bad work-arround" to know what is the last colum-header clicked. But because seaching into a string is not the ideal performance solution , Any other ideas?
Also, How to disable the edit mode and go back to the normal template ?
Thanks,
Carlos
function headerClickedfunc(e)
{
var botonfunc = e.srcElement.id;
var posbotonfunc = botonfunc.indexOf(":" ,9)
var numbotonfunc = botonfunc.charAt(posbotonfunc+1);
if(numbotonfunc=="1"){alert(e.srcElement.id);}
if(numbotonfunc=="2"){alert(e.srcElement.id);}
}
objfunc.getTemplate("top/item").setEvent("onmousedown", headerClickedfunc);
I did this "really bad work-arround" to know what is the last colum-header clicked. But because seaching into a string is not the ideal performance solution , Any other ideas?
Also, How to disable the edit mode and go back to the normal template ?
Thanks,
Carlos
function headerClickedfunc(e)
{
var botonfunc = e.srcElement.id;
var posbotonfunc = botonfunc.indexOf(":" ,9)
var numbotonfunc = botonfunc.charAt(posbotonfunc+1);
if(numbotonfunc=="1"){alert(e.srcElement.id);}
if(numbotonfunc=="2"){alert(e.srcElement.id);}
}
objfunc.getTemplate("top/item").setEvent("onmousedown", headerClickedfunc);
Carlos
September 12,