Shimu
Shimu

Reputation: 1147

Prevent Dojo DropdownMenu from closing

I use a Dojo Enhanced Grid to display various data. With a DropDownMenu I give the user the ability to show additional colums.
But this is a little bit uncomfortable. Because the user has to click for every new colum onto the menu.
Is there a possibility to prevent the DropDownMenu from closing? Or should I use another widget for this?

Upvotes: 0

Views: 756

Answers (2)

user2968576
user2968576

Reputation: 1

yourGrid.openDropDown(); will open the menu back again, and you would not really notice that it was displayed back again after a close.

Upvotes: 0

sws
sws

Reputation: 301

I'd suggest you look into Dojo dgrid, and the ColumnHider extension. It effectively recreates what you're doing, and is available out-of-the-box, including the feature you're after.

An alternate solution is to use a dijit/TooltipDialog, whose default behavior is to stay open when one of its contents is clicked.

Upvotes: 1

Related Questions