How to have/assign telerik:GridDropDownColumn on specified column when we have AutoGeneratedColum=True ?

4 posts, 0 answers
  1. Ganapathy
    Ganapathy avatar
    12 posts
    Member since:
    Aug 2012

    Posted 28 Mar 2013 Link to this post

    Hello,

    How and where to specify/have/assign telerik:GridDropDownColumn on specified column when we have AutoGeneratedColum=True on RadGrid ?

    Thant mean having specific colum as telerik:GridDropDownColumn when AutoGeneratedColum=True.

    Thank you
    Regards
    Ganapathy
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Mar 2013 Link to this post

    Hi,

    You can add a GridDropDownColumn to the column collection as shown below.
    aspx:
    <Columns>
      <telerik:GridDropDownColumn UniqueName="drop" DataSourceID="SqlDataSource2" ListTextField="OrderID" ListValueField="OrderID" ListTextField="OrderID" DropDownControlType="RadComboBox"></telerik:GridDropDownColumn>
    </Columns>

    Thanks,
    Shinu
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ganapathy
    Ganapathy avatar
    12 posts
    Member since:
    Aug 2012

    Posted 28 Mar 2013 Link to this post

    Hi Shinu,

    Thank you very much for your reply :)

    My senario needs when we have AutoGeneratedColum=True?

    Let us say If I am binding the List of object on RadGrid1_NeedDataSource, Then How can we accompolish this?

    Whether below statement will work when we binding the List of object on RadGrid1_NeedDataSource?

    <Columns>
      <telerik:GridDropDownColumn UniqueName="drop" DataSourceID="SqlDataSource2" ListTextField="OrderID" ListValueField="OrderID" ListTextField="OrderID" DropDownControlType="RadComboBox"></telerik:GridDropDownColumn>
    </Columns>

    Thank You
    Regards
    Ganapathy


  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 01 Apr 2013 Link to this post

    Hi,

    Here is the smaple cdoe.
    C#:
    <telerik:RadGrid ID="RadGrid1" runat="server"AutoGenerateColumns="true" OnNeedDataSource="RadGrid1_NeedDataSource">
       <MasterTableView>
         <Columns>
            <telerik:GridDropDownColumn UniqueName="drop" DataSourceID="SqlDataSource2" ListTextField="OrderID" ListValueField="OrderID" ListTextField="OrderID" DropDownControlType="RadComboBox"></telerik:GridDropDownColumn>
         </Columns>
      </MasterTableView>
    </telerik:RadGrid>

    Thanks,
    Shinu
Back to Top