Forum Discussion

JohnTheDoe's avatar
JohnTheDoe
Frequent Visitor
8 years ago
Solved

ISelectionManager.clear() clears the selection from another visual

I'm currently testing two custom visuals in development, and apparently when I call the clear() function of powerbi's SelectionManager from visual #1, the selectedIds from visual #2 also get cleared. Is this behavior normal? Or am I doing something wrong when assigning SelectionIds?

  • This is expected behavior because clearSelection always removes selection from all of visuals.

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]

1 Reply

  • v-viig's avatar
    v-viig
    Community Champion

    This is expected behavior because clearSelection always removes selection from all of visuals.

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]