SetMultiSelectMode Method

The SetMultiSelectMode method determines whether or not a list applet is using multiselect mode. It uses the following syntax:

SetMultiSelectMode(bInMultiSelMode) 

where:

  • bIsInMultiSelectMode is a variable that includes one of the following values.

    SetMultiSelectMode returns this value:

    • true. List applet is using multiselect mode.

    • false. List applet is not using multiselect mode.

For example, the following code determines whether or not the list applet that the appletIndex identifies is using multiselect mode. This code resides in the notifyobject.js file:

for(var appletIndex=0, len = applets.length; appletIndex < len; appletIndex++){    
  applets[appletIndex].SetMultiSelectMode(bInMultiSelMode); 

The physical renderer can use the AttachPMBinding method in the presentation model to bind to the SetMultiSelectMode method. The following binding allows the physical renderer to know if the list applet is in multiselect mode:

this.AttachPMBinding("SetMultiSelectMode", InMultiSelectMode, this);    
  function InMultiSelectMode(bIsInMultiSelectMode){
  }