/// <summary> /// Returns the JSON markup for one node /// </summary> /// <param name="treeAlias"></param> /// <param name="nodeId"></param> /// <returns></returns> /// <remarks> /// This will initialize the control so all TreeService properties need to be set before hand /// </remarks> public string GetJSONNode(string nodeId) { if (!m_IsInit) { Initialize(); } if (string.IsNullOrEmpty(m_TreeService.TreeType)) { throw new ArgumentException("The TreeType is not set on the tree service"); } BaseTree tree = m_ActiveTrees.Find( delegate(BaseTree t) { return(t.TreeAlias == m_TreeService.TreeType); } ); return(tree.GetSerializedNodeData(nodeId)); }