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

How to have edit link to another page?

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alec
Top achievements
Rank 1
Alec asked on 31 Mar 2009, 02:45 AM
I have this:

 <telerik:RadGrid ID="rgCompanyList" runat="server" Skin="Outlook" AllowPaging="True" AllowSorting="True" GridLines="None"  > 
         <MasterTableView TableLayout="Auto" AutoGenerateColumns="False" DataKeyNames="CompanyID" > 
              <Columns> 
                     <telerik:GridBoundColumn DataField="CompanyID" DataType="System.Int32" HeaderText="Company ID" ReadOnly="True" SortExpression="CompanyID" UniqueName="CompanyID"></telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" UniqueName="Title"></telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn DataField="EmployeeCols.Count" HeaderText="No. of Employees" SortExpression="NoOfEmployees" UniqueName="EmployeeCols"></telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn DataField="TemplateCols.Count" HeaderText="No. of Templates" SortExpression="NoOfTemplates" UniqueName="NoOfTemplates"></telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn DataField="DtmUpdated" DataType="System.DateTime" HeaderText="Last Updated" SortExpression="dtm_updated" UniqueName="DtmUpdated"></telerik:GridBoundColumn> 
                     <telerik:GridEditCommandColumn EditText="Edit"></telerik:GridEditCommandColumn> 
             </Columns> 
       </MasterTableView> 
         
      <HeaderContextMenu Skin="Outlook">  
      <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
      </HeaderContextMenu> 
 
      <ClientSettings> 
           <Selecting AllowRowSelect="True" /> 
                   <Scrolling AllowScroll="false" UseStaticHeaders="True"  /> 
      </ClientSettings> 
 
      <FilterMenu Skin="Outlook">  
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
       </FilterMenu> 
</telerik:RadGrid> 

What i want is to have the edit link to another page (e.g. edit.php?id=) with the Company Id as the query string. How can I do that?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Mar 2009, 03:59 AM
Hello Alec,

You can check out the following demo llink which how to use RadWindow for editing RadGrid records. In the example on clicking the edit link a window is opened and a parameter(EmployeeID) from the grid is passed to the window. This should probably get you started.
Window Editing

Thanks
Princy.
Tags
Grid
Asked by
Alec
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or