Hello,
I created a simple RadGrid with a NestedViewTemplate and a SqlDataSource1, no code behind involve. When I click
expand link and show the static text inside the NestedViewTemplate, I get javascript runtime error:
Unhandled exception at line 6, column 74203 in http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:d618f02c-bda7-40f1-bb64-308e08f719c3:ea597d4b:b25378d2;Telerik.Web.UI:en-US:ac331549-681c-4402-9fb7-09ec3c579ee8:16e4e7cd:f7645509:22a6274a:ed16cbdc:58366029:24ee1bba:f46195d3:2003d0b8:88144a7a:1e771326:aa288e2d
0x800a138f - JavaScript runtime error: Unable to set property 'control' of undefined or null reference
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
<
Scripts
>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
<
script
type
=
"text/javascript"
>
//Put your JavaScript code here.
</
script
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
DataSourceID
=
"SqlDataSource1"
AllowPaging
=
"true"
>
<
MasterTableView
AutoGenerateColumns
=
"False"
DataKeyNames
=
"ProductID"
DataSourceID
=
"SqlDataSource1"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"ProductID"
DataType
=
"System.Int32"
FilterControlAltText
=
"Filter ProductID column"
HeaderText
=
"ProductID"
ReadOnly
=
"True"
SortExpression
=
"ProductID"
UniqueName
=
"ProductID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Name"
FilterControlAltText
=
"Filter Name column"
HeaderText
=
"Name"
SortExpression
=
"Name"
UniqueName
=
"Name"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ProductNumber"
FilterControlAltText
=
"Filter ProductNumber column"
HeaderText
=
"ProductNumber"
SortExpression
=
"ProductNumber"
UniqueName
=
"ProductNumber"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Size"
FilterControlAltText
=
"Filter Size column"
HeaderText
=
"Size"
SortExpression
=
"Size"
UniqueName
=
"Size"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Color"
FilterControlAltText
=
"Filter Color column"
HeaderText
=
"Color"
SortExpression
=
"Color"
UniqueName
=
"Color"
>
</
telerik:GridBoundColumn
>
<
telerik:GridCheckBoxColumn
DataField
=
"MakeFlag"
DataType
=
"System.Boolean"
FilterControlAltText
=
"Filter MakeFlag column"
HeaderText
=
"MakeFlag"
SortExpression
=
"MakeFlag"
UniqueName
=
"MakeFlag"
>
</
telerik:GridCheckBoxColumn
>
</
Columns
>
<
NestedViewTemplate
>
dssfaddfssd
</
NestedViewTemplate
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
asp:SqlDataSource
ID
=
"SqlDataSource1"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:AdventureWorks2008R2ConnectionString %>" SelectCommand="SELECT [ProductID], [Name], [ProductNumber], [Size], [Color], [MakeFlag] FROM [Production].[Product]"></
asp:SqlDataSource
>
If above code added to a RadControlWebApp project, it is running fine. But if it added to a existing ASP.NET
Web Forms Application. Also, I made sure that Telerik.Web.UI and Skins are added to references and web.config
What am I missing here to make NestedViewTemplate to work? It stopped working in Q3 2013 after upgraded.
Thanks in advance
Sam