Reply
Frequent Visitor
Posts: 3
Registered: ‎03-16-2017

How to add custom Properties in custom visuals

I have a custom visual which is using ag-grid, I want a way to add custom properties which may be hidden from the Formatting options in the visual pane.

 

For example there is an option in grid to sort or group by values, I dont want this to be added in the "Format" tab of visuals, I just want a way to store this details some where(using api, or custom visual update) for that report and retrieve the data when the user loads the same report and display the group by or sorting for that field.

 

When I was checking there was a visual called "Table" which does the same thing for sorting. Can any one help me on this? 

Senior Member
Posts: 269
Registered: ‎07-09-2016

Re: How to add custom Properties in custom visuals

Highlighted
Frequent Visitor
Posts: 3
Registered: ‎03-16-2017

Re: How to add custom Properties in custom visuals

@v-chuncz-msft  

 

Thank you for your suggestion. I am aware of the objects(Static Objects), But as I have metioned in the original question, I dont want this to be displayed in the property pane. 

Power bi table Visual.png

For example I am attaching a default behaviour of table "Visuals", where you can see a sort icon. This will not be available in the property pane but the sorting will be saved and when you open the report again the sorting will be restored from some where. 

 

I am also trying to do something similiar. Let me know If I am still confusing. 

 

 

Senior Member
Posts: 269
Registered: ‎07-09-2016

Re: How to add custom Properties in custom visuals

@bala23289,

 

You may refer to Table Sorter and view its source code at https://github.com/Microsoft/PowerBI-visuals-TableSorter.

Regards,
Sam
Frequent Visitor
Posts: 3
Registered: ‎03-16-2017

Re: How to add custom Properties in custom visuals

@v-chuncz-msft

 

Thank you for your reply. Can you point to me what I should look for in the table sorter code? Thank you again. 

Senior Member
Posts: 269
Registered: ‎07-09-2016

Re: How to add custom Properties in custom visuals

@bala23289,

 

You may leave a comment on GitHub to seek advice from the author.

Regards,
Sam