domready event doesn't fire on page 2 of pivot

Comments

4 comments

  • Avatar
    Delsaran Bigglesworth

    Have you tried 'refreshed' event. That's what I'm trying to figure out but for a different scenario. I feel like they added an event to the end of the event life cycle...

  • Avatar
    Ira Monko (Edited )

    Hello Kyle,

    Add custom JavaScript to a Widget:

    widget.on('initialized', () => {
    console.log('widget initialized')
    })

    widget.on('domready', () => {
    console.log('widget domready')
    })

    widget.on('refreshed', () => {
    console.log('widget refreshed')
    })

    widget.on('buildquery', () => {
    console.log('widget buildquery')
    })

    widget.on('beforequery', () => {
    console.log('widget beforequery')
    })

    widget.on('querystart', () => {
    console.log('widget querystart')
    })

    widget.on('queryend', () => {
    console.log('widget queryend')
    })

    widget.on('processresult', () => {
    console.log('widget processresult')
    })

    widget.on('render', () => {
    console.log('widget render')
    })

    widget.on('readjust', () => {
    console.log('widget readjust')
    })

     

    When you first load the dashboard:

    1. widget initialized
    2. widget buildquery
    3. widget beforequery
    4. widget querystart
    5. widget queryend
    6. widget processresult
    7. widget refreshed
    8. widget render
    9. widget domready

    When you click another page of results within the pivot table:

    1. widget buildquery
    2. widget beforequery
    3. widget querystart
    4. widget queryend
    5. widget processresult
    6. widget refreshed
    7. widget render
    8. widget domready
  • Avatar
    Kyle White (Edited )

    This is a good exercise.

     

    When result display results set to 25 rows, limited to just 3 pages of data at the moment

    On page 1 of pivot I get all events fired

    On Page 2 I get zero events fired.

    On Page 3 I get the following events:

    widget buildquery
    widget beforequery

    After the data is loaded on page 3, I get no more events clicking on any page.

     

  • Avatar
    Kyle White

    Does anyone know if this is what is expected.  My plugin can't work with the buildquery/ beforequery events as i need to have the data in hand to do some manipulation to it.

Please sign in to leave a comment.