talshadar
13 Feb 2008, 1:51 PM
I've been trying to resolve this issue for a couple days now with no luck at all. I have a tree loaded into a treepanel. The nodes get loaded from a buildTree.aspx file - and everything is working great except for 1 thing. Basically each node has an id that I use to grab the relevant data from a database to load into the next node list. Everything is working great except for this final section. There will only be 8 levels of nodes but that last one absolutely refuses to show. I've stepped through the code over and over again - the json string is formatted exactly the same as every other one and gets sent back exactly the same as all the others - but it just refuses to show.
My question - is there a limitation to how many levels you can have?
Here is a short excerpt of my code:
json.Append("[");
foreach (DataRow dr in dt2.Rows)
{
json.Append("{'text':'" + dr["Code"] + " - " + dr["Description"] + "(" + recCount + ")" + "','id':'" + param + dr["Code"] + nodeSeperator + "','leaf':false,'cls':'folder'},");
}
json.Remove(json.Length - 1, 1);
json.Append("]");
Response.ContentType = "text/html";
Response.Flush();
Response.Write(json.ToString());
Response.End();
Never mind - resolved the issue - it was in my looping code - not related to the tree at all.
My question - is there a limitation to how many levels you can have?
Here is a short excerpt of my code:
json.Append("[");
foreach (DataRow dr in dt2.Rows)
{
json.Append("{'text':'" + dr["Code"] + " - " + dr["Description"] + "(" + recCount + ")" + "','id':'" + param + dr["Code"] + nodeSeperator + "','leaf':false,'cls':'folder'},");
}
json.Remove(json.Length - 1, 1);
json.Append("]");
Response.ContentType = "text/html";
Response.Flush();
Response.Write(json.ToString());
Response.End();
Never mind - resolved the issue - it was in my looping code - not related to the tree at all.