Loading ...
Sorry, an error occurred while loading the content.

165792Retrieve current item on a DataGroup

Expand Messages
  • Jairo França
    Nov 5, 2013
    • 0 Attachment
      I have a question that seems easy, but i can't solve.
      I have a DataGroup with a custom ItemRenderer.
      How can I retrieve the current item that was selected with a double
      click (something like a SelectedItem on a DataGrid)?
      Can I retrieve the "itemRenderer" instance of the element?



      Thansk

      My code is:




      <s:Group height="100%" width="100%">
      <s:Scroller height="100%" width="100%" id="scr">
      <s:DataGroup id="dg" height="100%" width="100%"
      itemRenderer="myItemRenderer"
      dataProvider="{_data}"
      doubleClickEnabled="true" doubleClick="dg_doubleClickHandler(event)">
      <s:layout>
      <s:TileLayout/>
      </s:layout>
      </s:DataGroup>
      </s:Scroller>
      </s:Group>
    • Show all 3 messages in this topic