+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Binding Dropdown to DynamicTypes

Binding Dropdown to DynamicTypes

2 posts, 0 answered
  1. Henriette
    Henriette avatar
    41 posts
    Registered:
    20 Aug 2009
    03 Sep 2013
    Link to this post
    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>

  2. Henriette
    Henriette avatar
    41 posts
    Registered:
    20 Aug 2009
    04 Sep 2013 in reply to Henriette
    Link to this post
    Hi Again
    After playing arround with the Eval and adding the DataText field it Works OK
    Thanks in advance :-)

    Best regards
    Henrik
2 posts, 0 answered