Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Widgets /

Discuss SilverStripe Widgets.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Using TreeDropdownField in a Widget


Reply


3 Posts   1832 Views

Avatar
MarcusDalgren

Community Member, 288 Posts

12 October 2009 at 11:45pm

Hello.

I've been trying to use TreeDropdownField in one of my widgets but I can't get it to work. It seems like the javascript doesn't get applied properly when the TreeDropdownField is injected on the page like it is when you add a widget.

Does anyone know how to get this to work in a widget context?

Avatar
dio5

Community Member, 501 Posts

13 October 2009 at 3:25am

No, that type doesn't work with Widgets, but have a look at this forum post where someone gives an alternative non-js solution which might help:

http://www.silverstripe.org/widgets-2/show/253135

Avatar
MarcusDalgren

Community Member, 288 Posts

13 October 2009 at 3:27am

Thanks for the tip dio5!