Results 1 to 3 of 3

Thread: candidate.isXType is not a function

  1. #1
    Sencha User
    Join Date
    Oct 2009
    Posts
    63
    Answers
    2
    Vote Rating
    0
      0  

    Default candidate.isXType is not a function

    candidate.isXType is not a function - what does it mean ?

    I have a grid panel with xtype: "productsmanufacturergrid"

    On the toolbar have a button with [name=filter].

    So I do this:

    Ext.ComponentQuery.query("productsmanufacturergrid button[name=filter]");

    It returns http://screen.kroxus.net/umid/20151204-27i-29kb.jpg this error.

    Can anyone help me ???

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446
    Vote Rating
    186
      0  

    Default

    Hi--

    Do you have an example of the error that you can share in a Fiddle?

    Based on your description, I created a Fiddle with the same xtypes/names, and it seems to work as expected (see console after clicking "Click Me").

    https://fiddle.sencha.com/#fiddle/123d

    Thanks
    Joel

  3. #3
    Sencha Premium User StuartAshworth's Avatar
    Join Date
    Feb 2009
    Location
    Glasgow, Scotland
    Posts
    418
    Answers
    17
    Vote Rating
    47
      0  

    Default

    Just thought I'd bump this thread since it is still an issue. The trick is that there's a chart on the screen and it's Sprites are being included in the component query but they don't have the methods that are used in the filter checks.

    Here's a Fiddle: https://fiddle.sencha.com/#view/editor&fiddle/2kb5
    SenchaTalk.com - a free Slack community for all things Sencha. Join Now!

    Learn Ext JS 6 with my new ebook - Ext JS 6: Getting Started. Get a Sample Chapter now!

    Need help with Sencha development, code reviews or training? Get in touch!

    stuart@stuartashworth.com
    @StuartAshworth9

Similar Threads

  1. Ext GWT 3.0 Release Candidate is now available
    By Edmund in forum Community Discussion
    Replies: 15
    Last Post: 25 Apr 2012, 12:12 AM
  2. Ext GWT 3.0 Release Candidate is now available
    By Edmund in forum Sencha GXT Discussion
    Replies: 7
    Last Post: 3 Apr 2012, 3:57 PM
  3. Replies: 1
    Last Post: 7 Apr 2009, 3:14 PM
  4. Replies: 1
    Last Post: 7 Apr 2009, 3:14 PM

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
  •