More in this section

Forums / Developing with Sitefinity / RadCombBox in RadGrid edit modeI

RadCombBox in RadGrid edit modeI

2 posts, 0 answered
  1. Michael
    Michael avatar
    31 posts
    07 Sep 2007
    25 Oct 2009
    Link to this post
    I have a RadGrid that that has hierarchy sub grid.  What I what to know is when I click edit it brings up the form with the fields I can edit.  One Field is FirstName that is pulled from a separate DataSource.  Can I have the ListTextField Display the FirstName and LastName (which is another field).
                <telerik:GridTableView CommandItemDisplay="Bottom" DataKeyNames="CorporationID" DataSourceID="LinqDataSource2" 
                    Width="100%" runat="server"
                        <telerik:GridRelationFields DetailKeyField="CorporationID" MasterKeyField="CorporationID" /> 
                        <telerik:GridBoundColumn DataField="CorporationID" DataType="System.Int32" HeaderText="CorporationID" 
                            ReadOnly="True" SortExpression="CorporationID" UniqueName="CorporationID"
                        <%-- <telerik:GridBoundColumn DataField="ContactID" DataType="System.Int32" HeaderText="ContactID" 
                            ReadOnly="True" SortExpression="ContactID" UniqueName="ContactID">             
                        </telerik:GridBoundColumn> --%> 
                        <telerik:GridDropDownColumn DataField="ContactID" DataSourceID="LinqDataSource3" 
                            HeaderText="Name" ListTextField="FirstName" ListValueField="ContactID" UniqueName="GDContactID" 
                        <telerik:GridDateTimeColumn DataField="StartDt" DataFormatString="{0:d}" HeaderText="StartDt" 
                        <telerik:GridDateTimeColumn DataField="EndDt" DataFormatString="{0:d}" HeaderText="EndDt" 
                        <telerik:GridBoundColumn DataField="OwnershipPercent" DataType="System.Int32" HeaderText="OwnershipPercent" 
                            SortExpression="OwnershipPercentD" UniqueName="OwnershipPercent"

  2. Iana Tsolova
    Iana Tsolova avatar
    3 posts
    01 Apr 2016
    28 Oct 2009
    Link to this post
    Hi Michael,

    You can find more information on how to configure/customize GridDropDownColumn here.
    Another approach for achieving your goal is to add GridTemplateColumn instead and place the desired RadComboBox in its EditItemTemplate. Additional information on that subject can be found in this article.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered