Results 1 to 4 of 4

Thread: Combo store can't get data.

  1. #1

    Default Combo store can't get data.

    Code:
    xtype: 'ticketprice',allowBlank: false,
    editable: false,
    listeners: {
        select: function (slider, value) {
            if (slider.getWidgetRecord) {
                var rec = slider.getWidgetRecord();
                if (rec) {
                    rec.data.ticket_price = value.data.ticket_price;
                    rec.data.seat_type = value.data.carriage_name;
                }
            }
        }
    },
    afterRender: function(){
        var items = this.getStore().getData().items;
        console.dir(items);
        // console.dir(items[0]);
    
    this.select(items[0]);
        if(items.length > 0){
        }
    }
    TIM图片20190412170649.jpg
    I can see the data in the console , but i can not get the items. The items length is 0. This is a bug in extjs. I hope my problem can be resolved.

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006
    Answers
    5

    Default

    Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated! We do suggest using the support portal when you need assistance with a capability of a Sencha product, you have identified a situation where a products behavior is inconsistent with the product documentation and might indicate a software bug, or when the communication between you and Sencha needs to be private.

    Thanks again,

    Michele


  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    569
    Answers
    7

    Default

    Hello,

    Thank you for contacting Sencha Support!

    We will be looking into this post and and update on it shortly. We will contact if we need additional information.

    Regards,
    Kumar
    Sencha Support.

  4. #4
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    569
    Answers
    7

    Default

    Hello,

    Please see the fiddle below, this should help you with the issue.

    https://fiddle.sencha.com/#fiddle/2rkp&view/editor

    Regards,
    Kumar
    Sencha Support.

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
  •