Binding Dropdown to DynamicTypes

Posted by Community Admin on 04-Aug-2018 06:47

Binding Dropdown to DynamicTypes

All Replies

Posted by Community Admin on 03-Sep-2013 00:00

Hi al
I'am currently binding a RadcomboBox to a DynamicType, build with the module builder. The problem is that if I use as Layout Template in the dropdown, then when I click the dropdown the selectedvalue becomes to "Telerik.sitefinity.DynamicTypes.Model.Produkter.Pris" (See attached image). How is it possible to bind the DynamicTypes to at LayoutTemplate in a dropdown?

Below is my dropdown markup with the LayoutTemplate
Best regards
Henrik

<telerik:RadComboBox ID="ddprices" runat="server" EmptyMessage="Vælg produkt" DataValueField="id" Width="350">
<ItemTemplate>
    <asp:Label Text='<%# Eval("Title")%>' runat="server" /> kr. <asp:Label ID="Label1" Text='<%# Eval("Pris")%>' runat="server" />
</ItemTemplate>
</telerik:RadComboBox>

Posted by Community Admin on 04-Sep-2013 00:00

Hi Again
After playing arround with the Eval and adding the DataText field it Works OK
Thanks in advance :-)

Best regards
Henrik

This thread is closed