BindEvents Method

The BindEvents method binds an event. It returns nothing. It uses the following syntax:

BindEvents(this.GetProxy().GetControls()); 

For example, the following code in the renderer.js file uses the BindEvents method:

this.GetConcreteRenderer().BindEvents(this.GetProxy().GetControls()); 

For another example, the following code binds a resize event:

CustomPR.prototype.BindEvents = function(){    
var controlSet = controls||this.GetPM().Get("GetControls");    
for(var control in controlSet){    
  if(controlSet.hasOwnProperty(control)){    
     // Bind for each control as required.    
   }    
}    
// Resize event    
$(window).bind("resize.CustomPR", OnResize, this);
};    
function OnResize(){    
} 

Siebel Open UI expects the physical renderer to use the ShowUI method to do all possible event binding. The event can reside on an applet control or in the applet area of the DOM. This binding also applies to any custom event, such as resizing a window. For more information, see ShowUI Method and Siebel CRM Events That You Can Use to Customize Siebel Open UI.

For information about how Siebel Open UI uses BindEvents, see the following topics: