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.