Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Add a Tree Menu to DataGrid Header Text

, 9 Nov 2005
This article shows how to add a JavaScript tree menu to a DataGrid head text.
HM_DOM = (document.getElementById) ? true : false;
HM_NS4 = (document.layers) ? true : false;
HM_IE = (document.all) ? true : false;
HM_IE4 = HM_IE && !HM_DOM;
HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
HM_IE4M = HM_IE4 && HM_Mac;
HM_IsMenu = (HM_DOM || HM_NS4 || (HM_IE4 && !HM_IE4M));
HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "IE4";
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
popUp = HM_f_PopUp;
HM_GL_MenuWidth          = 100;
HM_GL_FontFamily         = "Arial,sans-serif";
HM_GL_FontSize           = 8;
HM_GL_FontBold           = false;
HM_GL_FontItalic         = false;
HM_GL_FontColor          = "#000066";
HM_GL_FontColorOver      = "red";
HM_GL_BGColor            = "#FFFFE8";
HM_GL_BGColorOver        = "silver";
HM_GL_ItemPadding        = 2;
HM_GL_BorderWidth        = 1;
HM_GL_BorderColor        = "#000066";
HM_GL_BorderStyle        = "solid";
HM_GL_SeparatorSize      = 1;
HM_GL_SeparatorColor     = "#000066";
HM_GL_ImageSrc           = "Script/menu_right.gif"; 
HM_GL_ImageSize          = 16;
HM_GL_ImageHorizSpace    = 1;
HM_GL_ImageVertSpace     = 2;
HM_GL_KeepHilite         = false;
HM_GL_ClickStart         = false;
HM_GL_ClickKill          = 0;
HM_GL_ChildOverlap       = 40;
HM_GL_ChildOffset        = 10;
HM_GL_ChildPerCentOver   = null;
HM_GL_TopSecondsVisible  = .5;
HM_GL_StatusDisplayBuild = 0;
HM_GL_StatusDisplayLink  = 1;
HM_GL_UponDisplay        = null;
HM_GL_UponHide           = null;
HM_GL_CreateTopOnly      = HM_NS4 ? true : false;
HM_GL_ShowLinkCursor     = true;

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Florence FZ Li
Web Developer
United States United States
M.S.: Computer Science, B.S.: Physics, MCSD: .NET, MCSD: VS 6
 
Florence currently works at Confident Software, Inc. Atlanta, U.S.A. Besides programming, during her spare time she enjoys opera.

| Advertise | Privacy | Mobile
Web01 | 2.8.140814.1 | Last Updated 9 Nov 2005
Article Copyright 2005 by Florence FZ Li
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid