Hi folks
I am trying to update a label I have in a NestedViewTemplate on the client side in the RowDataBound event. Does anyone know how I can do this? Here is what I have tried but it doesn't work. FindControl doesn't find the control:
function RadGrid1_RowDataBound(sender, args)
{
var label1 = args.get_item().findControl("lblReferenceValue"); // find control
label1.set_value(args.get_dataItem()["ReportSourceId"]);
}
Here is my markup:
<NestedViewTemplate>
<asp:Table ID="tblDetails" runat="server">
<asp:TableRow ID="trReference">
<asp:TableCell>
<asp:Label ID="lblReferenceValue" runat="server" Text="Reference:" />
I am trying to update a label I have in a NestedViewTemplate on the client side in the RowDataBound event. Does anyone know how I can do this? Here is what I have tried but it doesn't work. FindControl doesn't find the control:
function RadGrid1_RowDataBound(sender, args)
{
var label1 = args.get_item().findControl("lblReferenceValue"); // find control
label1.set_value(args.get_dataItem()["ReportSourceId"]);
}
Here is my markup:
<NestedViewTemplate>
<asp:Table ID="tblDetails" runat="server">
<asp:TableRow ID="trReference">
<asp:TableCell>
<asp:Label ID="lblReferenceValue" runat="server" Text="Reference:" />