1 Reply Latest reply on Jan 2, 2009 11:26 AM by buttau

    ScrollableDataTable. Javascript-Object

    buttau

      Hallo! Can anybody tell me how to get an Javascript-Object of a ScrollableDataTable-Component. If I try following

      alert(#{rich:component('viewgrid')})
      
      ---------
      
      <rich:scrollableDataTable id="viewgrid"
       rowKeyVar="rkv" frozenColCount="1"
       height="200px" width="99%" rows="30" var="row"
       value="#{backingBean.model}"
       selection="#{backingBean.selection}"
       binding="#{backingBean.tableComponent}"
       sortMode="single">
      
      </rich:scrollableDataTable>
      

      ... alert shows 'undifined'

      There is an Info in Developer Guide about a JS-function "collapse(columnId)". But how do I get an Object to call this function?