How to add GridBoundColumn and dropdown to radgrid?

3 posts, 0 answers
  1. sho
    sho avatar
    24 posts
    Member since:
    Mar 2007

    Posted 27 Jul 2011 Link to this post


      I want to populate my radgrid with the data using GridBoundColumn and dropdown controls.

    I am able to place the GridBoundColumn like

          <telerik:GridBoundColumn ReadOnly="true" SortExpression="Name" HeaderText="Employee Name"
          DataField="EmployeeName" ItemStyle-Width="150px"><ItemStyle Width="150px"></ItemStyle>

    I want to add a dropdown box next to the above field to populate data. How can I do this?

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Jul 2011 Link to this post

    Hello Aradhya,

    You can add a DropDownlist in ItemTemplate or you can add a GridDropDownColumn as shown below.
             <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="OrderID" DataValueField="Freight">
           <%--   Another method using GridDropDownColumn--%>
        <telerik:GridDropDownColumn DataField="OrderID" HeaderText="drop" UniqueName="GridDropDownColumn"
        ListTextField="OrderID" DropDownControlType="DropDownList" ListValueField="Freight"

  3. DevCraft R3 2016 release webinar banner
  4. abinav
    abinav avatar
    50 posts
    Member since:
    Nov 2010

    Posted 27 Jul 2011 Link to this post

    try using template field or dropdown column to populate data we cannot customize boundcolumn to have controls inside it
Back to Top