Results 1 to 2 of 2

Thread: Extjs domQuery using grid.up().query()

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    49

    Default Answered: Extjs domQuery using grid.up().query()

    I am facing problem in using the domquery, to get focus on the control previous to grid when the grid cell is in edit mode, What i am trying is

    1.check the grid tabindex add 1 to it, gridTabIndex = grid.dom.tabindex - 1

    2.do grid.up() to look out for main form ,

    3.then search using domquery form.query('input[tabindex = gridTabIndex]') for the field with the tabindex = grid.tabindex - 1

    using grid.up().query() gives the below output as shown in image

    So the point 3 is where i am facing problem. it gives an empty array // output is []
    Any kind of help is appreciated.
    Attached Images Attached Images

  2. You should use grid.up().getEl().query() instead of grid.up().query(). The latter will be used to query child components, not child HTML elements.

  3. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347

    Default

    You should use grid.up().getEl().query() instead of grid.up().query(). The latter will be used to query child components, not child HTML elements.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •