3.2.0

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);
Carlos
September 12,
Sorry, regarding the second question, I didn't express myself correctly, should be: "How to disable the edit mode dinamically".
Suppose I need to make some rows editable and others not (depending on a column-value f.e. "owner"). If this row (record) is "yours", you can edit it, and if not : the edition should be disabled.
But i believe it is an event-handler wall.
Anyone discovered any trick about how to mislead / bypass this?
Any example doing similar things woul be apreciated.
Thanks again,

Carlos
September 13,

This topic is archived.

See also:


Back to support forum