0 Replies Latest reply on Jan 6, 2010 1:54 PM by Joe Greene

    How to get index number of <rich:dataGrid... iteration

    Joe Greene Novice

      Hi -

      We use the <rich:dataGrid...> component in a few places throughout our application, and it appears that the iteration index of the grid is used to help produce unique ids for the interior component that the grid is responsible for rendering.  I want to place a javascript call within each grid "cell", so will need to refer to this id.  Is there syntax I can use to grab the iteration index number?  For example, I would think I should be able to do something like:


      getElementById('beginOfId' + #{gridIndex} + 'endOfId'), where the 'gridIndex' of course is the iteration index (0,1,2,etc) of the dataGrid component.


      Can this be done?  Thanks for any help!

      - Joe