Sidebar Custom - Auto Expand when using "Add to table" or "View in Table"

940
8
02-02-2026 03:42 PM
Brian_McLeer
MVP Regular Contributor
4 8 940

https://github.com/brianmcleer/sidebar-custom-widget

A customized version of Esri's Sidebar widget for ArcGIS Experience Builder. It keeps everything the stock Sidebar does and adds automatic expansion so a collapsed sidebar opens itself when a table is shown, which keeps the Table widget visible inside the sidebar instead of hidden behind a collapsed panel.

Features

  • Auto-expand on table open. When a collapsed sidebar contains a Table widget and a user runs "Add to table" or "View in table", the sidebar expands automatically so the table is visible.
  • Auto-expand for widget controllers. A collapsed sidebar also expands when a widget inside a Widget Controller is opened, so the controller content is not stuck behind a collapsed panel.
  • Everything from the stock Sidebar widget: two configurable panels (FIRST and SECOND), fixed layouts, the toggle button with its configurable colors and border, and the toggle and open message actions.

(view in My Videos)

 

Comes from an idea and great solution by @JeffreyThompson2 at The Automatically Opening Attribute Table.

 

8 Comments
ElisabethFenn
Regular Contributor

This is a great improvement! As I'm testing it out I'm seeing an issue that I don't have with the original sidebar app. When I go to add a layer to the table, it gives me the table option twice. I've confirmed this is the same table listed twice and not a second table in the app. Have you seen this happen?

Screenshot 2026-02-04 095044.png

Brian_McLeer
MVP Regular Contributor

Thank you @ElisabethFenn. I have seen the double table you are seeing occasionally, but it was before I created the sidebar custom. Are you using the out of the box map layers widget or a custom one? I have a modified custom one, which is why I though the double table option was an isolated issue. 

Brian_McLeer
MVP Regular Contributor

@ElisabethFenn, I think this may be a bug. I created a testing application in DE 1.19 using all out of the box tools. The issue does not appear in DE, but it does on a deployed application. I may have to create a ticket with Esri support. 

DE:

Brian_McLeer_1-1770312554244.png

 

Deployed testing application:

Brian_McLeer_0-1770312515716.png

 

 

ElisabethFenn
Regular Contributor

@Brian_McLeer Interesting. I am using the out of the box map layers widget.

Yesterday I hadn't published yet and was just using the preview function in exb dev 1.19 and was seeing the double table issue.

Today I confirmed the double table is still there in preview, then I deployed my test app and I do not see the double table issue with the deployed version.

That's the opposite of what you're seeing though. 

Brian_McLeer
MVP Regular Contributor

@ElisabethFenn interesting we are having the same issue but in opposite scenarios. I will keep you updated on results of my support case. 

Brian_McLeer
MVP Regular Contributor

@ElisabethFenn Esri Support was able to replicate the issue on their end using DE 1.19 with no custom widgets. It may be logged as a bug pending more testing, and then a bug may be posted on Esri's bug site. 

Brian_McLeer
MVP Regular Contributor

@ElisabethFenn this has been logged as BUG-000182651. I think you can create a support ticket and ask to have your account associated with the bug to get status updates and see it from the My Esri support site. 

Brian_McLeer
MVP Regular Contributor

Update on 2/23/26:

Widget now supports auto expansion for widget controller or view/add in table. 

Have collapsed sidebars expand when using "Add to table" or "View in table"" to show Table widget within sidebar. Also supports auto-expansion for widget controllers. 

Contributors
About the Author
GIS Administrator/Developer at City of Grand Junction, CO.