This is a migrated thread and some comments may be shown as answers.

Multiple Edit column option in Radgrid

2 Answers 175 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Soumya
Top achievements
Rank 1
Soumya asked on 28 Mar 2012, 09:57 AM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Mar 2012, 11:35 AM
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.
0
Soumya
Top achievements
Rank 1
answered on 29 Mar 2012, 10:12 AM
Hi,
    Thanks for the reply. I will try with this.

Regards,
Soumya,
Bangalore.
Tags
General Discussions
Asked by
Soumya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Soumya
Top achievements
Rank 1
Share this question
or