Results 1 to 7 of 7

Thread: candidate.isXType is not a function

  1. #1
    Sencha User
    Join Date
    Oct 2009
    Posts
    67
    Answers
    2

    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

    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

    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!

    [email protected]
    @StuartAshworth9

  4. #4
    Sencha Premium User
    Join Date
    Nov 2015
    Posts
    19

    Default

    Still a bug in Ext 6.6.0.
    Also happening with itemId: "candidate.getItemId is not a function"
    Any workarounds?

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2007
    Location
    Sydney
    Posts
    117
    Answers
    3

    Default

    Note that this bug still exists in 6.7.0.

    In my case it was the SpriteLegend causing the issue. I'm using the following override as a workaround.

    Code:
    Ext.define('EB.overrides.chart.legend.SpriteLegend', {    
        override: 'Ext.chart.legend.SpriteLegend',
        isXType: Ext.emptyFn
    });

  6. #6
    Sencha Premium Member
    Join Date
    Nov 2007
    Location
    Sydney
    Posts
    117
    Answers
    3

    Default

    FYI, I raised this issue through support and have been advised that it is in their system under EXTJS-27485

  7. #7
    Sencha Premium User
    Join Date
    Oct 2015
    Location
    Arvada, CO
    Posts
    76
    Answers
    3

    Default

    Excellent, thanks for that CaCtus491. I'm wondering if maybe we could get a Support Engineer to move this thread to a bug and link it?

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
  •