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

GridHyperLinkColumn does not appear in edit mode

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stavros
Top achievements
Rank 1
Stavros asked on 16 Dec 2008, 09:10 AM
I have a GridHyperLinkColumn field in my program.
The problem is that this field does not appear in edit mode.
Any ideas on how to fix that?

Here's the code :

<

 

telerik:GridHyperLinkColumn

 

 

HeaderText="value"

 

 

DataTextField="value"

 

 

UniqueName="value"

 

 

DataNavigateUrlFields="value"

 

 

>

 

 

</telerik:GridHyperLinkColumn>

The value is of string type.

Thank you very much

 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Dec 2008, 09:52 AM
Hello Stavros,

Please test the following approach:
<telerik:GridTemplateColumn> 
    <ItemTemplate> 
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Bind("myURL") %>' Text='<%# Bind("myText") %>' /> 
    </ItemTemplate> 
    <EditItemTemplate> 
        URL: 
        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("myURL") %>' /> 
        Text: 
        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("myText") %>' /> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 

I hope this helps.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Stavros
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or