Click here to Skip to main content
Licence 
First Posted 11 Jan 2004
Views 60,304
Bookmarked 15 times

JScript Tree Grid Control

By | 11 Jan 2004 | Article
Tree Grid control for JScript.

Sample Image - wsGridCtrl.gif

Introduction

This article demonstrates a Tree Grid control for JScript.

How to use

// Create wsGrid Instance
 m_wsGridCtrl = new wsGridCtrl();
 
 // Initialize
 // Param1: width
 // Param2: OnMouseOver Color
 m_wsGridCtrl.initializeDocument(500, "#FF9999");
 // Titles Create
 // Param1: Text
 // Param2: Width
 m_wsGridCtrl.InsTab("Title", "*");
 m_wsGridCtrl.InsTab("Content", "400");
 

 // Insert Item Example
 // Param1: Parent Item
 // Param2: Item. If title is two..
//          you must write two Items. (delimiter is ';')
 // Param3: hyper link (it also delimiter is ';')
 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;");
 
 // Sub Item Example
 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;");
  

 // finilly generate code (It is important!)
 m_wsGridCtrl.GenerateCode(); 
 // First state setting (ExpandAllTree or RecudeAllTree)
 m_wsGridCtrl.RecudeAllTree();
// m_wsGridCtrl.ExpandAllTree();

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Jongha Ahn

Software Developer

Korea (Republic Of) Korea (Republic Of)

Member

Computer Programmer

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalanother small change Pinmembermaster.zion10:25 7 Jul '09  
GeneralThis is a asp.net edition Pinmembersherwinzhu23:55 2 Oct '08  
GeneralYou did a GREAT JOB !!!!!!!! PinmemberSilverNight0:09 25 Oct '07  
GeneralThis is exactly what I needed PinmemberBigJoe7144:31 1 Jun '07  
GeneralRe: This is exactly what I needed PinmemberSilverNight0:11 25 Oct '07  
GeneralSmall Bug Pinmemberilikeopensource8:11 23 May '07  
AnswerRe: Small Bug PinmemberBigJoe7144:29 1 Jun '07  
GeneralRe: Small Bug Pinmemberjoepen16:02 26 Jan '09  
QuestionDynamic Items Pinmembermanugoel20030:34 13 Sep '06  
GeneralGreat script Pinmembertimothymm7:57 3 Apr '06  
GeneralDynamic include Item. Pinmemberleandronardo3:34 5 Jul '05  
GeneralVery Slick! PinmemberD2F3U3:38 20 Jan '04  
GeneralRe: Very Slick! Pinmemberwhitespray13:42 22 Jan '04  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 12 Jan 2004
Article Copyright 2004 by Jongha Ahn
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid