Results 1 to 6 of 6

Thread: ItemSelector with direct store data throws exception

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-16458 in 5.1.3.
  1. #1
    Sencha Premium User
    Join Date
    Nov 2013
    Location
    Piacenza, Italy
    Posts
    220

    Default ItemSelector with direct store data throws exception

    Ext version tested:
    • Ext 4.2.3.1255 (OK)
    • Ext 5.1.0.107 (BUG)
    Browser versions tested against:
    • Chrome 39
    • FF 34
    • IE 10
    DOCTYPE tested against:
    • <!DOCTYPE html>
    Description:
    • In an ItemSelector, when setting directly data to the "store" config, warning is shown and an exception is thrown.
    Steps to reproduce the problem:
    • Create an ItemSelector with this config: { store: ['Foo','Bar'] }
    The result that was expected:
    • 'Foo' and 'Bar' should be displayed
    The result that occurs instead:
    • This warning is shown: "[W] Ext.data.Store created with no model."
    • This exception is thrown: "Cannot read property 'schema' of null"
    Note:
    In the Fiddle, I tried also with a ComboBox and it works correctly with same configuration.



  2. #2
    Sencha Premium User lumberjack's Avatar
    Join Date
    Nov 2014
    Location
    Kansas
    Posts
    781

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3

    Default

    What's about this issue?
    We are waiting four months.

    Do you have any workaround?

  4. #4

    Default

    Hi,

    Any solution found so fa. We are also facing same issue with ItemSelector Store. My Store uses JSN as reader and how it can be used in ArrayStore which is expected in the ExtJS 5.1.x Itemselector

  5. #5
    Sencha Premium User
    Join Date
    Nov 2013
    Location
    Piacenza, Italy
    Posts
    220

    Default

    Try one of these configurations:

    Code:
    {
        store: ['Foo', 'Bar'],
        displayField: ['field1']
    }
    Code:
    {
        store: new Ext.data.ArrayStore({
            data: [['Foo'], ['Bar']],
            fields: ['text']
        })
    }

  6. #6
    Sencha User
    Join Date
    Jan 2016
    Location
    Brazil
    Posts
    139

    Default

    The fiddle provided here still has empty itemselector (while the same approach works for the similar combobox) in ExtJS 6.5.0... Should this be reopened? Maybe nobody miss this anyway...

    Here's the current (ExtJS 6.5.0) fiddle with the code provided in the initial post: https://fiddle.sencha.com/#view/editor&fiddle/223o
    Object.NET
    Frameworks and Tools for .NET Developers
    --------------------------------------------------
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter
    --------------------------------------------------

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
  •