Click here to Skip to main content
15,909,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,



I am using Telerik rad Grid control and i need a hyperlink in radgrid so that i can go to another page when i click on that ...and i also need details which are der in radgrid along with someother details..i have already kept textboxes in another page..
I have no idea about this..Can anyone tell me how to proceed???


Thank You
Posted
Comments
Sinisa Hajnal 7-Apr-15 6:14am    
Put the data you need into the link at the time of grid binding (if that is query data, only primary key is enough)...
Member 11148509 7-Apr-15 6:37am    
u mean its same like getting data from database to texbox's??? r any changes??
Abdul Samad KP 7-Apr-15 7:24am    
Is your data coming from database?

1 solution

XML
<telerik:RadGrid ID="rgRecent" OnNeedDataSource="rgRecent_NeedDataSource" runat="server" HeaderStyle-BackColor="#c5c5c5" >
            <MasterTableView DataKeyNames="ID">
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="Count" >
                        <ItemTemplate>
                            <asp:HyperLink Target="_blank" ID="lnkShowInfoRecentInq" NavigateUrl='<%# "~/ABC/XYZ/common.aspx?ID="+Eval("ID") %>'                runat="server">
                                <%# Eval("Count")  %>
                            </asp:HyperLink>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <NoRecordsTemplate>
                    <div id="Div1" style="text-align: center" runat="server">
                        <b>
                           No Record
                        </b>
                    </div>
                </NoRecordsTemplate>
            </MasterTableView>
        </telerik:RadGrid>


If you simply want to redirect to another page then go for Hyperlink and add necessary data in querystring and pass onto another page but if you want to get data in running mode then i suggest to use Linkbuton and generate itemcommandevent then redirect to another page after fetching data.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900