Is it possible to access an ItemDataBound routine for a detail table?
What I want to do is toggle fields based on permissions as well as edit the text in a label. The detail table has a item template:
What I want to do is toggle fields based on permissions as well as edit the text in a label. The detail table has a item template:
<ItemTemplate>
<table width="100%">
<tr>
<td style="width:250px;" >
Created by: <%# Eval("created_by")%><br />
Created On: <%# Eval("created_on", "{0: ddd MM/dd/yy hh:mm}")%><br />
<asp:Label ID="lblNoteType" runat="server" Text="" Visible="false" />
<asp:Label ID="lblNoteTypeData" runat="server" Text='<%# Eval("note_type")%>' Visible="false" />
</td>
<td>
<%# Eval("note")%>
</td>
</tr>
</table>
</ItemTemplate>
I am trying to toggle lblNoteType visible and invisible based on permissions as well as change the text property.
I put a name on the detail grid and setup aProtected Sub gvNotes_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs)event, but that didn't work, setting
<telerik:GridTableView Name="gvNotes" OnDataBound="gvNotes_ItemDataBound"on the detail grid didn't launch the event either.
What is the best way to do this?
Thanks
Randy Miller
TransGuardian