3 Replies Latest reply on Mar 30, 2011 2:10 PM by Kiran Kumar

    <rich:dataGrid accessing the element content

    Kiran Kumar Newbie

      I am using a richDataGrid for gallery View and on double click of the each element I need to pass the element information to open a popup. I have a onRowDbClick event on the dataGrid and I see the first element id being passed for each element in that row.


      I was expecting the id of each element getting passed respectively on the click but rather the first element id of the corresponding row is getting passed.


      How do I acheive this functionality ?


      <rich:dataGrid  columns="4" elements="#{_bean.list.size()}"  value="#{_bean.list}"

                                  var="_listvar" width="55%" styleClass="galleryDataGrid" style="border-top: 1px;border-left: 1px;"

                                  onRowDblClick="openPopup('#{_listvar.id}');" >