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

hyperlink enabled=false

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Folmer
Top achievements
Rank 1
Folmer asked on 21 Dec 2011, 11:49 AM
Hello,

In the code below you can see that I'm trying to disable 1 of the 2 hyperlinks. If I do this outside a RadGrid there is no problem and it will be disabled, but if I use it inside the RadGrid, it looks like that it just get ignored. This is exactly the same with visible. is there any solution for this problem?

<telerik:GridTemplateColumn UniqueName="TLastPostInfo" HeaderText="last Post Info">
    <ItemStyle Width="80px" />
    <ItemTemplate>
        <div>
            Post Date:
            <%# DataBinder.Eval(Container.DataItem, "LAST_POST_DATE")%>
            <br />
            in:
            <asp:HyperLink ID="HLLastTopic" Style="text-decoration: none" runat="server" NavigateUrl='<%# "TopicView.aspx?cat="+ Eval("ID").ToString() +"&top="+ Eval("LAST_TOPIC_ID").ToString()%>'><%# Eval("LAST_TOPIC_NAME")%></asp:HyperLink>
            by:
            <asp:HyperLink ID="HLLastPersonPost" Style="text-decoration: none" runat="server"
                NavigateUrl='<%# "ProfileView.aspx?id=" +  Eval("LAST_PERSON_ID").ToString()%>' Text='<%# Eval("LAST_PERSON_NAME")%>' Enabled="false" />
        </div>
    </ItemTemplate>
</telerik:GridTemplateColumn>

1 Answer, 1 is accepted

Sort by
0
Folmer
Top achievements
Rank 1
answered on 22 Dec 2011, 01:54 PM
problem solved.
Tags
Grid
Asked by
Folmer
Top achievements
Rank 1
Answers by
Folmer
Top achievements
Rank 1
Share this question
or