How to pass to a Dropdown the FIRST element of an array?

I have a Dropdown in a Grid as template,
and in the "Value" property, if I pass this:

${data.selectedValues}

it does not give problems, but if I try to do this:

${data.selectedValues[0]}

it won't launch the app, and it "transforms" that in the HTML file like this:

[(ngModel)]="(data && (data.selectedValues || {})[0]"

which of course is wrong.

So how can I correctly pass as "Value", the first element of that array?

currently the only workaround for this, is to:

just put ${data.selectedValues},

then before deploying the App, go in the HTML and manually append in the NgModel : "[0]"

Which of course is just a fix, as I would need to remember doing this each time I do a change in the page and Radzen generates it back

You can try with a custom attribute.

@korchev thank you for the answer, do you mean using the same attribute " [(ngModel)] " and add it in the Custom Attributes, and passing there my array? I will try this

I confirm that this fixed the issue, a note for other people with this problem, you MUST clear the original "Value" field, otherwise the custom attribute will give you problems