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

Conversion

4 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 16 Jul 2008, 12:27 PM
hi

How do I convert an anchor tag to use Hyperlink server control in RadGrid?

I have this code that i wish to convert.

</

EditItemTemplate>

<ItemTemplate>

<a href="#" onclick="openRadWindow2('<%#DataBinder.Eval(Container.DataItem,"vourcherid")%>'); return false;">Update</a>

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

Thanks a million

4 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 16 Jul 2008, 12:43 PM
Hello Lui Nai Wah,

You can nest the control in the item template, as shown in the code snippet below:

.aspx
 <telerik:GridTemplateColumn> 
                   <ItemTemplate> 
                   <asp:HyperLink runat="server" ID="Link1" NavigateUrl='<%# Eval("Title") %>'>  
                   </asp:HyperLink> 
                   </ItemTemplate> 
                   </telerik:GridTemplateColumn> 
                     

I hope this helps.

All the best,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
L
Top achievements
Rank 1
answered on 16 Jul 2008, 02:49 PM
hi

Maybe you want to read the code that i have posted.

I have a onclick event that calls a RadWindow. How do I call an onclick event that open up another window using radwindow? Thanks

0
Accepted
Yavor
Telerik team
answered on 17 Jul 2008, 07:37 AM
Hello Lui Nai Wah,

You have not provided any client side script. Do you want to open the window onclick of the hyperlink, as shown here, or perhaps open another window from within the already opened radWindow.

All the best,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
L
Top achievements
Rank 1
answered on 17 Jul 2008, 07:58 AM
hi

Thanks. I have solved it. Thanks
Tags
Grid
Asked by
L
Top achievements
Rank 1
Answers by
Yavor
Telerik team
L
Top achievements
Rank 1
Share this question
or