Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Stop initial rendering of the Visuals

I am unable to stop the initial rendering of visuals during the loading of dashboard page. I dont want to render all the visuals, just the ones that are selected. Report selection happens in a different page, so everytime i select a different combination of visuals and load the dashboard page, all the visuals get rendered momentarily.

 After few seconds i can see the visuals that were selected, i just dont want this intial rendering of all visuals.

I went through the PowerBI-Javascript code base (also the Javascript v2-demo) and tried out multiple scenarios but it wasnt fruitful.

Is there any settings to add while making the API call or is there something else that i need to change in Js code??

 

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI Anonymous,

    I check the official documents and I found most of the functions or events only trigger after the report initialization steps. Dynamic Binding 

    For this scenario, I'd like to suggest you take a look at the following link about dynamic binding operations. 

    You can create two datasets and setting one of them has a few blank tables to create visuals you do not want them initialized. 

    After some actions, you can dynamically refresh the contents and switch the bound datasets to show the visual data that not initialized.

    Reference links:

    Phased Embedding 

    How to handle events#loaded 
    Regards,
    Xiaoxin Sheng

  • Anonymous's avatar
    Anonymous
    Not applicable

    I tried with Dynamic Binding and Phase Binding but it did'nt work. Currently i am just hiding all the Visuals using Js, but that's just a work around. Do you have any more suggestions or topics that i can look into?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Anonymous,

      As I said, most of the functions triggered after the report initialized.

      If dynamic binding not works, perhaps you can try to use filter to filter visual records to show the blank visual or direct use js script to hide visuals.

      Regards,

      Xiaoxin Sheng