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

Convert Hyperlink Into Label

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vimal Kumar
Top achievements
Rank 1
Vimal Kumar asked on 07 Sep 2009, 06:38 AM
Hi,
I am working in telerik. Here i need your help in converting hyperlink into label. I am using hyper link in aspx like
:
<telerik:GridHyperLinkColumn HeaderStyle-Width="100px" HeaderText="Current status" 
 DataTextField="current_status" UniqueName="current_status" DataNavigateUrlFields="url" Visible="false"></telerik:GridHyperLinkColumn> 
It's coming perfect for link, But i want for some particular case(for some condition) it should display as label also. I cant able to find the solution that how can i convert the hyperlink to label.
    Can anybody pull my hand to come out of this problem...

Regards,
Vimal Kumar Srivastava

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 08 Sep 2009, 02:34 PM
Hello Vimal,

I recommend that you use GridTemplateColumn to achieve the desired by you functionality:
 <telerik:GridTemplateColumn>   
          <ItemTemplate>   
              <asp:HyperLink runat="server" ID="HyperLink1" DataNavigateUrlFields="url" Visible="true">    
                    </asp:HyperLink>   
          <asp:Label runat="server" ID="Label1" Text='text' Visible="false">    
                    </asp:label>   
         </ItemTemplate>   
 </telerik:GridTemplateColumn> 
and change the visibility of the hyperlink and the label according to the situation.

Best wishes,
Mira
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Vimal Kumar
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or