Introduction
This article demonstrates a Tree Grid control for JScript.
How to use
m_wsGridCtrl = new wsGridCtrl();
m_wsGridCtrl.initializeDocument(500, "#FF9999");
m_wsGridCtrl.InsTab("Title", "*");
m_wsGridCtrl.InsTab("Content", "400");
m_wsGridCtrl.InsItem(null, "Menu1;Content1;",
"http://yahoo.com;http://google.com;", "_self;_blank;");
m_wsGridCtrl.InsItem(null, "Menu2;Content2;",
"http://yahoo.com;http://google.com;", "_blank;_blank;");
var iItem = m_wsGridCtrl.InsItem(null, "Menu3;Content3;",
"http://yahoo.com;http://google.com;", "_blank;_blank;");
m_wsGridCtrl.InsItem(iItem, "Menu5;Content5;",
"http://yahoo.com;http://google.com;", "_blank;_blank;");
m_wsGridCtrl.InsItem(null, "Menu6;Content6;",
"http://yahoo.com;http://google.com;", "_blank;_blank;");
m_wsGridCtrl.InsItem(null, "Menu7;Content7;",
"http://yahoo.com;http://google.com;", "_blank;_blank;");
m_wsGridCtrl.GenerateCode();
m_wsGridCtrl.RecudeAllTree();