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.

Form Questions /

TreeDropdownField filter first level of objects


Reply


616 Views

Avatar
lanks

Community Member, 61 Posts

20 December 2011 at 9:18pm

Edited: 20/12/2011 9:19pm

I am wanting to filter the first level of objects bound to a TreeDropdownField. Specifically I want to do this for Files/Folders.

I have had a look at the code for TreeDropdownField. From what I can see when the code binds the field it gets a singleton of the object being added and then calls the getChildrenAsUL on the singleton object. From this it seems to retrieve all of the top level objects.

I would like to filter these top level objects somehow. Is this possible? Or can anyone recommend the best way to go about customizing this control so that it can have its first level filtered with a custom query.

Thanks Liam.