Multiple Edit column option in Radgrid

3 posts, 0 answers
  1. Soumya
    Soumya avatar
    12 posts
    Member since:
    Feb 2012

    Posted 28 Mar 2012 Link to this post

    Hi,
         I have one GridEditCommandColumn and GridButtonColumn inside my radgrid.
    What i want to do is, on click of both  want to open different popup to edit.
    I gave command name as Edit in Gridbuttoncolumn. 
    On both click its showing same mastertablevieweditform.
    How to have multiple mastertablevieweditform. 

    Please tell me some solution for this.


    Regards,
    Soumya,
    Bangalore
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Mar 2012 Link to this post

    Hello Soumya,

    One suggestion is you can use EditCommandColumn to show one edit form and instead of GridButtonColumn, you can use a HyperLink in TemplateColumn which opens a RadWindow to show another edit form. The following demo shows how to use RadWindow for editing RadGrid records.
    aspx:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager>
    <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" AutoGenerateColumns="false">
      <MasterTableView DataKeyNames="EmployeeID" EditMode="PopUp">
        <Columns>
          <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>
           <telerik:GridTemplateColumn>
             <ItemTemplate>
                <asp:HyperLink ID="EditLink" runat="server" Text="Edit"></asp:HyperLink>
             </ItemTemplate>
           </telerik:GridTemplateColumn>
        </Columns>
      </MasterTableView>
    </telerik:RadGrid>
    Grid / Window Editing

    Thanks,
    Shinu.
  3. Soumya
    Soumya avatar
    12 posts
    Member since:
    Feb 2012

    Posted 29 Mar 2012 Link to this post

    Hi,
        Thanks for the reply. I will try with this.

    Regards,
    Soumya,
    Bangalore.
Back to Top