Hi,
I am unable to do filtering on the GridTemplateColumn.
coContact.ExtFormattedFullName is throwing "Object reference not set to an instance of an object" NullReferenceException.
The <asp:Literal> is displaying the data properly in the column. (Attached is the screenshot).
Please share your thoughts as to how this can be fixed.
Regards,
Sriram
I am unable to do filtering on the GridTemplateColumn.
<
telerik:GridTemplateColumn
HeaderText="<%$ Resources:UI, EmployeeNotesTab_HeaderText_coContact_Contact %>" UniqueName="Contact" DataField="coContact.ExtFormattedFullName">
<
ItemStyle
HorizontalAlign
=
"Left"
VerticalAlign
=
"Top"
/>
<
ItemTemplate
>
<
asp:Literal
ID
=
"lblContact"
runat
=
"server"
Text='<%# Eval("coContact.ExtFormattedFullName") %>' />
<
div
>
<
small
><
asp:Label
ID
=
"lblFormattedPhone"
runat
=
"server"
CssClass
=
"darkBlueFont"
Text='<%# GetFormattedPhone(Eval("coContact")) %>' /></
small
></
div
>
<
div
><
small
><
asp:Label
ID
=
"lblContactType"
runat
=
"server"
CssClass
=
"darkBlueFont"
Text='<%# Eval("coContact.coContactType.typeName") %>' /></
small
></
div
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
coContact.ExtFormattedFullName is throwing "Object reference not set to an instance of an object" NullReferenceException.
The <asp:Literal> is displaying the data properly in the column. (Attached is the screenshot).
Please share your thoughts as to how this can be fixed.
Regards,
Sriram