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

[Solved] editable hyperlink column

8 Answers 305 Views
Grid
This is a migrated thread and some comments may be shown as answers.
newbie
Top achievements
Rank 1
newbie asked on 24 Apr 2008, 07:02 PM
I want to put a hyperlink column in my grid but the gridhyperlinkcolumn is not editable.

I want it to be a hyperlinkcolumn in view mode and be editable in edit/insert mode.

Can I make it editable without using a Template column?

8 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Apr 2008, 07:22 AM
Hi Newbie,

Go through the following help document link to get details about the ColumnTypes supported by RadGrid.
Column types

Thanks
Princy.
0
newbie
Top achievements
Rank 1
answered on 25 Apr 2008, 03:56 PM
yeah seems like GridHyperLinkColumn is not aidtable so I will have to implement it in GridTemplateColumn.
0
Hrushikesh Mokashi
Top achievements
Rank 1
answered on 30 Apr 2008, 10:04 AM
Hi Newbie,

Can you please post the code to edit hyperlink column using Template Column?
i am facing issues with it.

thanx in advance.\

Best Regards,
Hrushikesh
0
Yavor
Telerik team
answered on 30 Apr 2008, 10:41 AM
Hi Hrushikesh,

You can employ a template column, which may look something like:

.aspx
  <rad:GridTemplateColumn> 
                    <ItemTemplate> 
                    <asp:HyperLink runat="server" ID="HyperLink1" Text='<%# Eval("Quantity") %>'>  
                    </asp:HyperLink> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                    <asp:TextBox runat="server" ID="Textbox1" Text='<%# Bind("Quantity") %>'>  
                    </asp:TextBox> 
                    </EditItemTemplate> 
                    </rad:GridTemplateColumn> 
                     

I hope this information helps.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Hrushikesh Mokashi
Top achievements
Rank 1
answered on 30 Apr 2008, 11:43 AM
Hi Yavor,
I tried this but it's giving me error in HTMl as
"Bind" is not declared"

Still if I run the program its giving me error as,

"Server tag is not well formed"

Best Regards,
Hrushikesh.
0
Yavor
Telerik team
answered on 30 Apr 2008, 11:50 AM
Hi Hrushikesh,

Attached to this message is a sample application where the code was excerpted from.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Hrushikesh Mokashi
Top achievements
Rank 1
answered on 30 Apr 2008, 11:51 AM
Hi Yavor,

That worked. I was missing a end tag.

Thanx a lot for the reply.

Best Regards,
Hrushikesh
0
Denise Duggan
Top achievements
Rank 1
answered on 14 Jan 2010, 01:58 PM
Helped me find my problem too.  Thanks!
Tags
Grid
Asked by
newbie
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
newbie
Top achievements
Rank 1
Hrushikesh Mokashi
Top achievements
Rank 1
Yavor
Telerik team
Denise Duggan
Top achievements
Rank 1
Share this question
or