Added an example of dynamic datalist

Addresses #4627
I'm working on it, a few issue came up while working on this.