fires just before the pivot is rendered
$$("pivot").attachEvent("onBeforeRender", function(config){ // some code here });