RadCombo with <ItemTemplate> and ObjectData Source - selected value displays type name

3 posts, 0 answers
  1. Dan
    Dan avatar
    22 posts
    Member since:
    Oct 2013

    Posted 05 Jun 2015 Link to this post

    My List is displaying correctly and filtering correctly however when selecting item all that is selected is the type name ??

    <telerik:RadComboBox ID="rcbEmployeeFilter" AllowCustomText="True" runat="server"
                   Width="200px" Height="400px"
                   EmptyMessage="Search for people..."
                       <%# DataBinder.Eval(Container.DataItem, "empID")%> -
                       <%# DataBinder.Eval(Container.DataItem, "empFirstName")%> <%# DataBinder.Eval(Container.DataItem, "empLastName")%>
               <asp:ObjectDataSource ID="odsEmployees" runat="server"
               TypeName="PMTReports.BLL.Person.Employee" OldValuesParameterFormatString="original_{0}"

     Please tell me what I am missing or what to change?


  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 10 Jun 2015 Link to this post

    Hi Dan,

    Please set the DataTextField property. 

    Peter Filipov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
  4. Dan
    Dan avatar
    22 posts
    Member since:
    Oct 2013

    Posted 10 Jun 2015 in reply to Peter Filipov Link to this post


     Thanks for the reply, Yes, I have tried that but as you must know. Telerik DataTextField will only accept one parameter(field). Simply I putting empLastname or empID will not be enough for the user to know that they picked the right item.
    Since there was no good solution I have since created a new object type PMTReports.BLL.Person.EmployeeBasic  that  provides the entire name empFullName in one parameter, and I have abandeded the <itemTemplate>




Back to Top