[CLOSED] Get record.data in RowDblClick

  1. #1

    [CLOSED] Get record.data in RowDblClick

    Hi
    I have a GridPanel with a RowDblClick listener
    <RowDblClick Handler="alert(record.data.FIELD1);"/>   //This is what I want to do, does not work
    I want to get record data for the row beeing double clicked?

    Thanks
    /Mikael
    Last edited by Daniil; Feb 07, 2012 at 11:44 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please ask any technical support questions on the Premium Help forums since you are a premium member. We might miss your question on another forums.

    Regarding the question.

    A record is not passed to a RowDblClick listener, but a row index is passed.
    http://docs.sencha.com/ext-js/3-4/#!...nt-rowdblclick

    You can use the Store's getAt method to get a record by its index.
    http://docs.sencha.com/ext-js/3-4/#!...e-method-getAt
  3. #3
    Sorry about that, I dont know why I postet at the wrong forum.

    Can you please give me an example line of how to get the data out of the store based on the row index?

    Thanks
    Mikael
  4. #4
    Here you are.

    Example
    <RowDblClick Handler="alert(Ext.encode(this.getStore().getAt(rowIndex).data);" />
  5. #5
    Thank you for your help!

Similar Threads

  1. RowDblClick Direct Event Issue
    By sumesh in forum 1.x Help
    Replies: 5
    Last Post: May 01, 2012, 11:15 AM
  2. [CLOSED] BeforeEdit 'record.data' is null or not an object
    By sharif in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 13, 2010, 2:54 PM
  3. rowDblClick listener handler
    By [WP]joju in forum 1.x Help
    Replies: 2
    Last Post: Mar 03, 2010, 9:19 AM
  4. [CLOSED] Grid record.data for AjaxMethods
    By macap in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 05, 2010, 5:08 AM
  5. Ext.data.Record constructor
    By mthird in forum 1.x Help
    Replies: 0
    Last Post: Oct 14, 2008, 4:05 PM

Posting Permissions