There will be some icon beside each of the 'name's. And by clicking the 'name's, the 'files' list will show and user can select a file. Selected value will be the file-id (like 123456789, 3248734567754 etc).
Can you please help?
4 Answers, 1 is accepted
answered on 26 Feb 2015, 09:04 AM
I would suggest you use a custom item template, that allows to control the rendering of the suggestion item and thus you can list the values of the files array. The context of the template will be the whole data item, hence you will have access to the name and files fields. The template could look something like this:
Yes, I was able to write one custom template like you suggested. But, what I couldn't do, was to specify the 'dataTextField' and 'dataValueField' in the configuration, as user can select any item in the 'files' array, as I mentioned earlier. Can you please recommend a way to do this.
Thanks & regards,
answered on 03 Mar 2015, 11:14 AM
I am afraid that selecting an array item is an unsupported scenario and there is no good workaround that we could suggest, other than flattening your data.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!