I'm building a custom module with the DNNTree control inside of a DataGrid EditTemplate...
I've tried several things... at first I had the ToolTips setup and a 100% preload but with this issue, I've made it expand and add more treenodes upon NodeClick (Populate on demand isn't working for some reason...)
If the number of nodes and branches stays small if works, but if there are too many I get this error:
AssemblyVersion: 6.1.1
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 83
ActiveTabName: <scrubbed>
RawURL: /dotnetnuke/<scrubbed>/tabid/83/ctl/Link/mid/397/DID/1/Default.aspx
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer: http://localhost/dotnetnuke/<scrubbed>/tabid/83/ctl/Link/mid/397/DID/1/Default.aspx
UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: c83d464d-8c6b-4f5a-a12a-0dc01fe8d079
InnerException: Exception has been thrown by the target of an invocation.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid object passed in, ':' or '}' expected. (2294): { id:"dnn_ctr397_LinkDocument_grdDocLink_CatalogueEntries_0",nodes:[{ imgIdx:"1", ca:"0", url:" ", key:"0", txt:"Top of Catalogue", id:"dnn_ctr397_LinkDocument_grdDocLink_CatalogueEntries_0_17683682", text:"Top of Catalogue", js:"", target:"", toolTip:"", enabled:"1", css:"", cssSel:"", cssHover:"", cssIcon:"", hasNodes:"1", hasPendingNodes:"0", image:"", level:"0", isBreak:"0", hover:"0", expanded:"1", selected:"", clickAction:"0",nodes:[{ imgIdx:"1", ca:"0", key:"2", hasNodes:"1", txt:"State Legal Materials", id:"_65980077", selected:"", expanded:"1",nodes:[{ imgIdx:"1", ca:"0", key:"4", hasNodes:"1", txt:"Oklahoma", id:"_65980077_36427378", selected:"", expanded:"1",nodes:[{ imgIdx:"1", ca:"0", key:"8", hasNodes:"1", txt:"Oklahoma Statutes Citationized", id:"_65980077_36427378_2808717", selected:"1",nodes:[]},{ imgIdx:"1", ca:"0", key:"9", hasNodes:"1", txt:"Oklahoma Session Laws", id:"_65980077_36427378_26179505",nodes:[]},{ imgIdx:"1", ca:"0", key:"10", hasNodes:"1", txt:"Oklahoma Constitution", id:"_65980077_36427378_40165142",nodes:[]},{ imgIdx:"1", ca:"0", key:"11", hasNodes:"1", txt:"Oklahoma Cases", id:"_65980077_36427378_32151073",nodes:[]},{ imgIdx:"1", ca:"0", key:"12", hasNodes:"1", txt:"Oklahoma Court Rules", id:"_65980077_36427378_54100084",nodes:[]},{ imgIdx:"1", ca:"0", key:"13", hasNodes:"1", txt:"Oklahoma - Registry of Frivolous or Malicious Appeals", id:"_65980077_36427378_20030709",nodes:[]},{ imgIdx:"1", ca:"0", key:"14", hasNodes:"1", txt:"Oklahoma - Full Faith and Credit of Tribal Courts", id:"_65980077_36427378_11874760",nodes:[]},{ imgIdx:"1", ca:"0", key:"15", hasNodes:"1", txt:"Oklahoma Attorney General's Opinions", id:"_65980077_36427378_22331471",nodes:[]},{ imgIdx:"1", ca:"0", key:"16", hasNodes:"1", txt:"Oklahoma Uniform Jury Instructions", id:"_65980077_36427378_64018736",nodes:[]},{ imgIdx:"1", ca:"0", key:"17", hasNodes:"1", txt:"Oklahoma Fee & Bond Schedules", id:"_65980077_36427378_18135118",nodes:[]},{ imgIdx:"1", ca:"0", key:"18", hasNodes:"1", txt:"Fee and Copy Schedules for the Appellate Courts", id:"_65980077_36427378_59658445",nodes:[]},{ imgIdx:"1", ca:"0", key:"19", hasNodes:"1", txt:"Interest on Judgments", id:"_65980077_36427378_495890",nodes:[]},{ imgIdx:"1", ca:"0", key:"25", hasNodes:"1", txt:"<a href="http://www.oscn.net/static/forms/start.asp">Oklahoma Legal Forms</a> ", id:"_65980077_36427378_40167103",nodes:[]},{ imgIdx:"1", ca:"0", key:"26", hasNodes:"1", txt:"Oklahoma Law Reviews", id:"_65980077_36427378_32309946",nodes:[]}]},{ imgIdx:"1", ca:"0", key:"5", hasNodes:"1", txt:"Wyoming", id:"_65980077_20811245",nodes:[]}]},{ imgIdx:"1", ca:"0", key:"3", hasNodes:"1", txt:"Federal Legal Materials", id:"_33755762",nodes:[]},{ imgIdx:"1", ca:"0", key:"1", hasNodes:"1", txt:"Deleted", id:"_51472881",nodes:[]}]}]} at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeList(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeList(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeList(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeList(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at DotNetNuke.UI.Utilities.Reflection.InvokeGenericMethod[T](Type Type, String MethodName, Object Target, Object[] Args) at DotNetNuke.UI.Utilities.MSAJAX.Deserialize[T](String Data) at DotNetNuke.UI.WebControls.DnnTree.LoadPostedJSON() at DotNetNuke.UI.WebControls.DnnTree.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at System.Web.UI.WebControls.Table.RowControlCollection.Add(Control child) at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) at System.Web.UI.WebControls.Table.RowControlCollection.AddAt(Int32 index, Control child) at System.Web.UI.WebControls.TableRowCollection.Add(TableRow row) at System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.WebControls.BaseDataList.get_Controls() at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
If the control is outside of the datagrid, it works as expected... I'm not doing anything special in the grid... Has anyone else even seen this error?