Results 1 to 4 of 4

Thread: Dataview updatedata is not called?

  1. #1
    Sencha Premium User zmagyar's Avatar
    Join Date
    Mar 2012
    Location
    Budapest
    Posts
    94
    Answers
    1

    Default Answered: Dataview updatedata is not called?

    I'm doing a small app with a dataview in Sencha Architect. I wanted to use the updatedata event in a controller to pull in additional data. However it does not seem to be fired. The controller is

    Code:
    Ext.define('FieldServices.controller.Customers', {    extend: 'Ext.app.Controller',
        config: {
            control: {
                "#lstCustomers": {
                    updatedata: 'onDataviewUpdatedata'
                }
            }
        },
    
    
        onDataviewUpdatedata: function(component, newData, options) {
            alert('fired');
        }
    
    
    });
    Is there any clue what do I doing wrong?

    I have seen in the forum that there was some bug on this field but according to the threads they were fixed in 2.0 and I'm using that version.

  2. well in my opinion the update data event is only fired when you use a method like setRecord or setData on the DataView.

    if you wanna listen on data changes on the whole store you should listen on store's "load" event.

  3. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Germany, Dresden
    Posts
    35
    Answers
    3

    Default

    hw do you set data? via setData or setRecord?

  4. #3
    Sencha Premium User zmagyar's Avatar
    Join Date
    Mar 2012
    Location
    Budapest
    Posts
    94
    Answers
    1

    Default

    Data is coming from a store set at the dataview config. Does my expectation incorrect assuming the loading of items into the dataview forest this event? If so which event I need to look for?

  5. #4
    Sencha User
    Join Date
    Mar 2012
    Location
    Germany, Dresden
    Posts
    35
    Answers
    3

    Default

    well in my opinion the update data event is only fired when you use a method like setRecord or setData on the DataView.

    if you wanna listen on data changes on the whole store you should listen on store's "load" event.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •