79 |
ImageSize property on 32 (specifies the size of control' icons/images/check-boxes/radio-buttons)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> // Items.ItemHeight(0) = View.DefaultItemHeight // FilterBarFont.Size = Me.Font.Size // ToolTipFont.Size = Me.Font.Size var var_View = CascadeTree1.View; var_View.DefaultItemHeight = 36; var_View.HeaderHeight = var_View.DefaultItemHeight; var_View.SortBarHeight = var_View.DefaultItemHeight; var_View.Indent = 26; var_View.CheckImage(0) = 16777216; var_View.CheckImage(1) = 33554432; var_View.CheckImage(2) = 50331648; var_View.EnsureVisibleColumn("Function"); var var_Object = var_View.Columns.Item("Function"); var_View.Columns.Item(0).Def(0) = true; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.ImageSize = 32; CascadeTree1.Font.Size = 16; CascadeTree1.Images("gBJJgBAIDAAEg4AEEKAD/hz/EMNh8TIRNGwAjEZAEXjAojKAjMLjABhkaABAk0plUrlktl0vmExmUzmk1m03nE5nU7nk9miAoE+oVDolFo1HpFJpU5h8Sf9OqFNqUOq" + "NUqdPq9VrFWrlbr1QpdhAFAkFis1ntFptVrtkrpszrNvmVxqk3uVtm1kmF3sdBvF/wGBmV+j9BYGHwWJulfxdax2NyFdx2JlV6l9Nw7AAGZymdz2Cy2GxErvWcz9ivlw" + "yV21cuxugwktzGIzmvwtl0+53U5y0a0Wazmmyu/3dCyOMyXHx/J5nIr9q3uyqnBxFN3G46ma4vb7mD2Ng4nZze00fDkHC7t7us2rOX5tguetpHRlmz4HVqnXk1PjHO+C" + "MPo9MBMC+j2vC8j7wS8cFNI4kBo05UIvfCT/NsnsApU+0Fqg/T+oy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IceADHKiXxmVz4JLdGZ1QTGID2XaYaxWK4oZjsVSc4KDHbETbHFi9Fo" + "3NaaxGisew+GYc4HlCR5NAAAIIEkQJSGMOgdE4RhYDwJJsAaAYQgmPpolCWgSCiBJzjcEIAkQXIBm8d5UhOQgCDUIBDDJDhgggJgKgKYJIDSVoDk8KBFF4OohEMZgWDs" + "YYDj4GoGmGSB2B6B5iAiBgYDsYRjGSbIJo4RgqDuIpIAoLoLmMCJGDKDJjJiLA7xqUAAgGTwYnYPoPmQCQGEKEJkEkFg9gGY44BoRoSmSSQ2EKEggHgRhShSZRJFYVoV" + "mWCRmFKFAgGOTheheZgJgYYoYmYSYWGaF4lkMMJ0hqZpJjYbobmcCZGHKHJmjmJh0h2Z4JmYcIaE8WZ2H6H5oAoBoCiCaBKBYfdjGoJoKiKaJKDaDojmkChGgmIgpCoV" + "oWiWaJZiSd4mmmSh2h6J5qAqBoiiiaY5iSeIpmqComiqKpqkqNouiuah6hqMIsmsSpWiuGhP1kOoumuSp2j6L5sAsBo54gKwWkaMZsgsJpKjKbJLDaRYxYWRpSjSbIZi" + "Se41m2CxmlqNptksdpejebR5iSfI4m4S4W16boLiaao6m5fJ9jubwLkaco8m8S5WnaPZunuOp4j6b5Lnac4SA0PAGlgP4wEwFwGkGcIMCcCpCnCCxiA8NYAAmMJfkSbh" + "FCcFpFnGDBnBqRpUhuEwTDeZ5lHCfw6HIQxLCaAxygyJwqgGcATE4FA6hWY4tjEAAQBAgIA=="); CascadeTree1.BackColorHeader = 80135878; CascadeTree1.SelBackColor = 67108864; CascadeTree1.SelForeColor = 65536; CascadeTree1.Background(20) = CascadeTree1.SelBackColor; CascadeTree1.Background(21) = CascadeTree1.SelForeColor; CascadeTree1.Background(26) = CascadeTree1.BackColor; CascadeTree1.Background(27) = CascadeTree1.ForeColor; CascadeTree1.Background(32) = -1; CascadeTree1.Background(0) = 67108864; CascadeTree1.Background(41) = 67174657; CascadeTree1.Background(1) = 67109119; CascadeTree1.HeaderAppearance = 4; CascadeTree1.BackColorSortBar = CascadeTree1.BackColor; CascadeTree1.BackColorLevelHeader = CascadeTree1.BackColor; CascadeTree1.Mode = 3; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\MN"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
78 |
ImageSize property on 16 (default) (specifies the size of control' icons/images/check-boxes/radio-buttons)
|
77 |
Is it possible to highlight the column's header once a filter is applied
<BODY onload="Init()"> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); var var_Appearance = CascadeTree1.VisualAppearance; var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAEhABX8GACAADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKNYykCIRSDUJYkSZEIyjBI8ExXFqNACkGKwYgmNYiTLAcgAN" + "J0WBaGIZJ4gOT5fDKMoEDRRYADFCscwxJybQAqGQKKb+VgAVY/cTyBIAEQSKA0TDOQ5TSKWB4JPZQRBEbZMNBtBIUJquKaqShdQJCU5FdY3Xblez9P7AMBwLFEC4NQ8Y" + "NYuPhjR4dRTIMhvVAsUArFh8Zg9GZZFjmDIDT4ydBLTQwcyVIKnP5qOa6XbmPoCQDYKxZHYxPzVDa3axuL76dqCAT7XrXNy1TbNRrzQKfcJqfCbdw2YaDZLOOT3fjuI4" + "hhKaRzFAHJ+jYQ4xHuY4gHuGIXGeExqC8Tp6C+PoEm+G5ImycRgh0XwvDGa5rgOeoejyXwnFeQp2mkf5ClgBB9gCWIYAwfYAEKV58mkdwOggNArgOXY2EWLoDkKOA0mg" + "bhOGgZApgaSBIHWSYHSmbApgYThmESZYJkIeIkgeCpfliLIHgpMIcmUYYYmODAlg2SI4mWfRfGOEguDcCRjFYAJihCQhJBSDoRmONgKEcI4kFCEJhhOVYTmYnAlEAQhW" + "BMJYJGYWoWmWSR2F6F5lnkWAQhUAgpEieRWEuSYkjWGpmkmNhuhuZwJkYcocmaaYkjyEhngnUA6lEFAlAEgI="); var_Appearance.Add(1,"CP:2 -8 -4 2 4"); CascadeTree1.Background(0) = 33488638; CascadeTree1.Background(41) = 16843009; CascadeTree1.Background(32) = -1; CascadeTree1.BackColorHeader = 16777215; CascadeTree1.Mode = 1; var var_View = CascadeTree1.DefaultView(null); var_View.HeaderHeight = 28; var_View.DrawGridLines = -2; var_View.HeaderVisible = 1; var var_Columns = var_View.Columns; var_Columns.Add("C1").DisplayFilterButton = true; var var_Column = var_Columns.Add("C2"); var_Column.DisplayFilterButton = true; var_Column.Filter = "Item 2"; var_Column.FilterType = 240; var_Columns.Add("C3").DisplayFilterButton = true; var var_Items = var_View.Items; var h = var_Items.AddItem("Item 1"); var_Items.CellValue(h,1) = "Item 2"; var_Items.CellValue(h,2) = "Item 3"; h = var_Items.AddItem("Item 4"); var_Items.CellValue(h,1) = "Item 5"; var_Items.CellValue(h,2) = "Item 6"; var_View.ApplyFilter(); CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
76 |
Is it possible to show the filterbar on top of the rows
|
75 |
Is there anyway to stop the header changing colour when the mouse hovers/moves across the column header (non-clickable)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> var var_View = CascadeTree1.View; var k = var_View.ParentView.Value(null); var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var_View.Columns.Add(k); var var_Items = var_View.Items; var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 1`",k,null,null)); var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 2`",k,null,null)); var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 3`",k,null,null)); var_View.EndUpdate(); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); var var_View = CascadeTree1.View; var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var var_Column = var_View.Columns.Add("Default"); var_Column.AllowSort = false; var_Column.AllowDragging = false; var_View.Key = 0; var var_Items = var_View.Items; var_Items.AddItem("Item A"); var_Items.SelectItem(var_Items.AddItem("Item B")) = true; var_Items.AddItem("Item C"); var_View.EndUpdate(); CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
74 |
Is there anyway to stop the header changing colour when the mouse hovers/moves across the column header
|
73 |
Type of wraps the cell's caption support (Sample 2)
<BODY onload="Init()"> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.Mode = 1; var var_View = CascadeTree1.DefaultView(null); var_View.BeginUpdate(); var_View.HeaderSingleLine = false; var_View.HeaderHeight = 36; var_View.DrawGridLines = -2; var_View.ColumnAutoResize = false; var_View.ScrollBySingleLine = true; var var_Columns = var_View.Columns; var var_Column = var_Columns.Add("Single-Line (exCaptionSingleLine)"); var_Column.Width = 96; var_Column.Def(17) = 1; var_Column.Def(16) = -1; var var_Column1 = var_Columns.Add("Word-Wrap (exCaptionWordWrap)"); var_Column1.Width = 96; var_Column1.Def(17) = 1; var_Column1.Def(16) = 0; var_Column1.FormatColumn = "%0"; var var_Column2 = var_Columns.Add("Break-Wrap (exCaptionBreakWrap)"); var_Column2.Width = 96; var_Column2.Def(17) = 1; var_Column2.Def(16) = 1; var_Column2.FormatColumn = "%0"; var var_Items = var_View.Items; var_Items.AddItem("This is the <b>first</b> line.<br>This is the <b>second</b> line.<br>This is the <b>third</b> line."); var_Items.AddItem("This is the <b>first</b> line.\\r\\nThis is the <b>second</b> line.\\r\\nThis is the <b>third</b> line."); var_View.EndUpdate(); } </SCRIPT> </BODY> |
72 |
Type of wraps the cell's caption support (Sample 1)
<BODY onload="Init()"> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.Mode = 1; var var_View = CascadeTree1.DefaultView(null); var_View.BeginUpdate(); var_View.HeaderSingleLine = false; var_View.HeaderHeight = 36; var_View.DrawGridLines = -2; var_View.ColumnAutoResize = false; var_View.ScrollBySingleLine = true; var_View.Columns.Add("Default").Width = 128; var var_Items = var_View.Items; var h = var_Items.AddItem("This is the first line.\\r\\nThis is the second line.\\r\\nThis is the third line."); h = var_Items.AddItem("This is the <b>first</b> line.<br>This is the <b>second</b> line.<br>This is the <b>third</b> line."); var_Items.CellValueFormat(h,0) = 1; h = var_Items.AddItem("This is the first line.\\r\\nThis is the second line.\\r\\nThis is the third line."); var_Items.CellSingleLine(h,0) = 0; h = var_Items.AddItem("This is the <b>first</b> line.<br>This is the <b>second</b> line.<br>This is the <b>third</b> line."); var_Items.CellValueFormat(h,0) = 1; var_Items.CellSingleLine(h,0) = 0; h = var_Items.AddItem("This is the first line.\\r\\nThis is the second line.\\r\\nThis is the third line."); var_Items.CellSingleLine(h,0) = 1; h = var_Items.AddItem("This is the <b>first</b> line.<br>This is the <b>second</b> line.<br>This is the <b>third</b> line."); var_Items.CellValueFormat(h,0) = 1; var_Items.CellSingleLine(h,0) = 1; var_View.EndUpdate(); } </SCRIPT> </BODY> |
71 |
Can I break the cell's caption using the line break <br> or \r\n (Sample 2)
|
70 |
Can I break the cell's caption using the line break <br> or \r\n (Sample 1)
|
69 |
Is it possible to change the visual appearance of the position signs when user changes the column's position by drag and drop
<BODY onload="Init()"> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); var var_Appearance = CascadeTree1.VisualAppearance; var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABZEGACAADACAxRDgMQBQKAAzAJBIYhiG4cYCgMYxXDOCYXABCEYRXBIZQ7BKNIxjSJwFgmEgADKMA4SOKIZhrE4bBhGaQRUgyI43RhHUBzV" + "IUcQvE6TZRHCQYHgkNIhDJIM7TPLkeSVJaTIRoKhJUogApQThTMgVRDEThkGoSa6soSoYTDBKybLrSLKagOT5YUDKUqSdKEZRpEq1YztWbaQoCUoqVRRVIWfbNd4JJa4" + "aDhWpYdpeeY5R7bWLgBYVVABL7LLRsSxpHxPF6RXxaeI3GKsaS8G6ic6nPQMHj7I4NS5pUa6Rh2VYNSa8AAtETRYznOw4bTMXAjNIea5bAYIIR5HIoDzVbQcCQAHL9DB" + "eEMIQEEISgGhMGZQmocgymoYRRCIEQ0G2HYBnEIBig4V4zCQGINnmagCECY43medZ6H2Pw/g+X5fnueh/h+R5+AKABfkMWgGgGYA4AICoCGCE5WA4CphACMgSD2IRIDI" + "BICmEd5YGCBpRjGBgegWIYIgWdgoGIRQsiKCZiAiJZ0gGQI4jUS4LECOAiBmDJflGfg2BSY4Al4OhGkOCJ2DgFJjGGfgqgiH5Ch4RhGkqOQmEOEpkFkHQYhJRYyESAok" + "GKHhIhKIxJEmf4VGUeRGFmF5iBkchPhYJQ5GoYIZg6Ug6GoFYmkmNhuhulRGHKGoImefh0BUZ4JmYeoemeSZ2H6HQmgoBgXDqXwUAQgI="); var_Appearance.Add(2,"CP:1 0 -36 0 0"); CascadeTree1.Background(182) = 33554432; CascadeTree1.Mode = 1; var var_View = CascadeTree1.DefaultView(null); var_View.BeginUpdate(); var_View.HeaderAppearance = 4; var var_Columns = var_View.Columns; var_Columns.Add("Column 1"); var_Columns.Add("Column 2"); var_Columns.Add("Column 3"); var_View.EndUpdate(); CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
68 |
DataSource (control, ADODB, ACCDB, x64)
|
67 |
DataSource (view, ADODB, ACCDB, x64)
|
66 |
Simple sample
|
65 |
FilterBar sample
|
64 |
GroupBy sample
|
63 |
Manual sample
|
62 |
Appearance sample
|
61 |
How can I get the selected items (sample 2)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> var var_View = CascadeTree1.View; var k = var_View.ParentView.Value(null); var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var_View.Key = -1; var_View.Columns.Add(k); var var_Items = var_View.Items; var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 1`",k,null,null)); var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 2`",k,null,null)); var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 3`",k,null,null)); var_View.EndUpdate(); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewItemStateEndChanging(Operation,Item,ColIndex)" LANGUAGE="JScript"> alert( "End" ); alert( Operation ); var var_Items = CascadeTree1.View.Items; alert( "FocusItem" ); alert( var_Items.CellCaption(var_Items.FocusItem,0) ); alert( "SelectedItem" ); alert( var_Items.CellCaption(var_Items.SelectedItem(0),0) ); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewItemStateStartChanging(Operation,Item,ColIndex,Cancel)" LANGUAGE="JScript"> alert( "Start" ); alert( Operation ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); var var_View = CascadeTree1.View; var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var_View.Columns.Add("Default"); var_View.Key = 0; var_View.LinesAtRoot = -1; var var_Items = var_View.Items; var_Items.AddItem("Item A"); var_Items.SelectItem(var_Items.AddItem("Item B")) = true; var_Items.AddItem("Item C"); var_View.EndUpdate(); CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
60 |
How do I specify a foreground color for a particular view
|
59 |
How do display result/items in the view's filter bar
|
58 |
I am using the filter prompt feature, the question is how can I filter for items that starts with typed characters rather than contains
|
57 |
FilterBarCaption Predefined Keywords
|
56 |
How can I enable the column's filter bar (view)
|
55 |
How can I enable the column's filter bar
|
54 |
How can I enable the control's filter bar (view)
|
53 |
How can I enable the control's filter bar
|
52 |
Aggregate sum, min, max, count, avg, divider, total (view)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 2; CascadeTree1.Background(18) = 12895428; CascadeTree1.Background(170) = 4; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "RO"; var var_View = CascadeTree1.DefaultView(null).View("Country"); var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var_View.Columns.Item(0).Visible = false; var var_Items = var_View.Items; var_Items.LockedItemCount(0) = 1; var h = var_Items.LockedItem(0,0); var_Items.ItemDivider(h) = 0; var_Items.CellValueFormat(h,0) = 5; var_Items.CellValue(h,0) = "count(all,all,1)"; var_Items.FormatCell(h,0) = "`<r>Countries: <b>`+ (value format `0`)"; var_View.EndUpdate(); CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
51 |
Aggregate sum, min, max, count, avg, divider, total
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> CascadeTree1.View.HeaderVisible = false; var var_View = CascadeTree1.DefaultView(null); var var_View1 = var_View.View("Country"); var_View1.BeginUpdate(); var_View1.ColumnAutoResize = true; var_View1.Columns.Item(0).Visible = false; var var_Items = var_View1.Items; var_Items.LockedItemCount(0) = 1; var h = var_Items.LockedItem(0,0); var_Items.ItemDivider(h) = 0; var_Items.CellValueFormat(h,0) = 5; var_Items.CellValue(h,0) = "count(all,all,1)"; var_Items.FormatCell(h,0) = "`<r>Countries: <b>`+ (value format `0`)"; var_View1.EndUpdate(); var var_View2 = var_View.View("State"); var_View2.BeginUpdate(); var_View2.SingleSel = false; var_View2.ColumnAutoResize = true; var_View2.Columns.Item(0).Visible = false; var_View2.Columns.Item(1).Visible = false; var var_Items1 = var_View2.Items; var_Items1.LockedItemCount(0) = 1; h = var_Items1.LockedItem(0,0); var_Items1.ItemDivider(h) = 0; var_Items1.CellValueFormat(h,0) = 5; var_Items1.CellValue(h,0) = "count(all,all,1)"; var_Items1.FormatCell(h,0) = "`<r>States: <b>`+ (value format `0`)"; var_View2.EndUpdate(); var var_View3 = var_View.View("City"); var_View3.BeginUpdate(); var_View3.Columns.Item(0).Visible = false; var_View3.Columns.Item(1).Visible = false; var var_Column = var_View3.Columns.Item(2); var_Column.Width = 128; var_Column.HTMLCaption = "CityName"; var var_Items2 = var_View3.Items; var_Items2.LockedItemCount(0) = 1; h = var_Items2.LockedItem(0,0); var_Items2.ItemDivider(h) = 0; var_Items2.CellValueFormat(h,0) = 5; var_Items2.CellValue(h,0) = "count(all,all,1)"; var_Items2.FormatCell(h,0) = "`<r>Cities: <b>`+ (value format `0`)"; var_View3.EndUpdate(); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 3; CascadeTree1.Background(18) = 12895428; CascadeTree1.Background(170) = 4; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\AK"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
50 |
How can I add a check-box column (view)
|
49 |
How can I add a check-box column
|
48 |
How can I access a view
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> var var_View = CascadeTree1.View; var_View.HeaderAppearance = 4; var_View.HeaderHeight = 24; var_View.DrawGridLines = -1; var_View.GridLineStyle = 12; var var_View1 = CascadeTree1.DefaultView(null); var var_View2 = var_View1.View("Country"); var_View2.BeginUpdate(); var_View2.ColumnAutoResize = true; var_View2.Columns.Item(0).Visible = false; var_View2.Columns.Item(1).HTMLCaption = "Country <off 4><fgcolor=808080>Name"; var_View2.EndUpdate(); var var_View3 = var_View1.View("State"); var_View3.BeginUpdate(); var_View3.ColumnAutoResize = true; var_View3.Columns.Item(0).Visible = false; var_View3.Columns.Item(1).Visible = false; var_View3.Columns.Item(2).HTMLCaption = "State <off 4><fgcolor=808080>Name"; var_View3.EndUpdate(); var var_View4 = var_View1.View("City"); var_View4.BeginUpdate(); var_View4.Columns.Item(0).Visible = false; var_View4.Columns.Item(1).Visible = false; var var_Column = var_View4.Columns.Item(2); var_Column.HTMLCaption = "City <off 4><fgcolor=808080>Name"; var_Column.Width = 128; var_Column.Def(4) = 15790320; var_View4.CountLockedColumns = 1; var_View4.EndUpdate(); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 3; CascadeTree1.Background(18) = 12895428; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\AK"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
47 |
Conditional Format (check)
|
46 |
Conditional Format (view)
|
45 |
Conditional Format
|
44 |
I've seen the AllowSplitView property, the question is how can I load data to
|
43 |
How can I group the items (view)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> CascadeTree1.View.SingleSel = false; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); var var_Appearance = CascadeTree1.VisualAppearance; var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABa0GACAADACAxRDgMQBQKAAzAJBIYhiG4cYCgMYxXDOCYXABCEYRXBIZQ7BKNIxjSJwFgkAoJDYOMjwlDKEgADDFEgjJBkRxtDCPIDnGQoD" + "iGI4vSrCQ4yDA8GxCGSfIrjKiYbiGNY8RgZCiOMAFJSpC6gZRoSq4doGGJLQiDMaAdBNHyZKqpbQqeCZPDINQlWzbcrjKKFYQTOi7I4sCbYcqKA5PTbNdYyVBMWxfGIb" + "aIkXAcBjuO4hWbFdASRQdDYtHTIbzjCxLcgMD4gRwWCYNSAGRZJLDKK4gSh6eorHQAX4AGabFBOP5fC7TNJ0OKLRrkAJub5eFx3LJ97ohbLsOzYZK2ByDFqiMLGQZMZx" + "vGWUBAnYfJImcOwLEiBp0gaGpekSBxjE+WZ2jse5Im2S5ZkGYhdn4EY6A4Q4vAOWJ6H0V4oEgIgSFAGhGDGUB1ByBhVBUAwyhKMQIE2AgRjCWQJAoEIWk2SxCAGBBghQ" + "eJYkMZIYBYIYoHIG4HGICB+CKB4iEiBglgaUAzhiJAZA+Q4Qk2CxiniOgwgyYwolYMYNmMQw2CoGQihiLg5g+YxpAIOINiOOJ2CyEBkgkDhKhCJBQAI2IlAkJhMgqZBp" + "EYS4UiSGQ2E+FglHkdg5haI5pHIVoViYCQeF6vZJhYY4aCWWYqGyGpkimOhnhyZQ4nIToYGcSY+ESFQnHmGhwh+YpphYO4gmKOlEiGKIKBaCohmeQ4tkUQJQBAgI="); var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAEhABO0GACAADACAxRDgMQBQKAAzAJBIYhiG4cYCgMYxXDOCYXABCEYRXBIZQ7BKNIxjSJwFgkAoJDYOMjwlDKEgADDFEgjDBkRxtDCPIDnGQoD" + "iGI4vSrCQ4zHQkOx9C6NKLjOQaMhwcJPABTZwRRQMUyLAiQRioGKKJgkC4cAxIFhRXSVIyhC6XRiGURbJquLw1DBbEI3BaUOS7HqOK7vCZ7cACVYqQjLMrzCK8ZxLPqb" + "ZznOjZXoCKJDQzVYADFRVd4rMK9QABWw4YqWZYXX7kUDxbTdEYzPQAMw1GCcbxmF6eWbCNq3LidXTnOK3dwkO55cyuA6oazi8T6Bi2M6DDQNGSzZiuGZ9YSOOIwHJIN4" + "QDSUpYmQOoJA6KxVlCDBsnwOx9iWUhfiCThzjUHZun2WgSAiBIUA0JgziGVJkGWUZAkEUoyBEN51BsDYQhCIQJGqHAUCAGBGA0RwtDcVIgkgNgOgOYQIDiXYEmESBWBa" + "BZhggTgSgYYZIHYGoDGGaIGBiBpiCiFJdgkIksiiChhliLgsgYYpoj4F4MGMKBWDSDRhngMg4gcIQYnYPoEE6N4ZAMQBAICA="); CascadeTree1.SelBackColor = 16777216; CascadeTree1.SelForeColor = 0; CascadeTree1.BackColorHeader = 33554432; CascadeTree1.ScrollPartVisible(0,65536) = true; CascadeTree1.ScrollPartVisible(1,65536) = true; CascadeTree1.ScrollPartVisible(2,65536) = true; CascadeTree1.ScrollWidth = 4; CascadeTree1.Background(276) = 15790320; CascadeTree1.Background(260) = 8421504; CascadeTree1.ScrollHeight = 4; CascadeTree1.Background(404) = CascadeTree1.Background(276); CascadeTree1.Background(388) = CascadeTree1.Background(260); CascadeTree1.Background(511) = CascadeTree1.Background(276); CascadeTree1.Background(18) = 12895428; CascadeTree1.Background(142) = CascadeTree1.Background(18); CascadeTree1.Background(141) = CascadeTree1.Background(18); CascadeTree1.Background(170) = 2; CascadeTree1.BackColorSortBar = CascadeTree1.BackColor; CascadeTree1.EndUpdate(); CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 3; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "RO\\CJ|BV|CS"; var var_View = CascadeTree1.DefaultView(null).View("City"); var_View.BeginUpdate(); var var_Columns = var_View.Columns; var_Columns.Item("CountryCode").Visible = false; var var_Column = var_Columns.Item("Name"); var_Column.SortOrder = 1; var_Column.Width = 128; var_View.SortBarVisible = true; var_View.AllowGroupBy = true; var_View.SingleSort = false; var_View.Columns.Item("StateCode").SortOrder = 1; var_View.TreeColumnIndex = var_View.Columns.Item("Name").Index; var_View.EndUpdate(); CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
42 |
How can I group the items
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> // Columns("StateCode").Visible = False // Columns("StateName").SortOrder = 1 // Columns("StateCode").SortOrder = nGroupByIfCity var nGroupByIfCity = CascadeTree1.FormatABC("( A = `City`) ? 1 : 0",CascadeTree1.View.Tag,null,null); var bColumnAutoResize = CascadeTree1.FormatABC(" (A = `City`) ? 0 : -1",CascadeTree1.View.Tag,null,null); var var_View = CascadeTree1.View; var_View.BeginUpdate(); var_View.SingleSel = false; var_View.Columns.Item("CountryCode").Visible = false; var_View.Columns.Item("CountryName").SortOrder = 1; var var_Object = var_View.Columns.Item(2); var_View.TreeColumnIndex = 2; var_View.AllowGroupBy = true; var_View.SingleSort = false; var_View.SortBarVisible = nGroupByIfCity; var_View.ColumnAutoResize = bColumnAutoResize; var_View.EndUpdate(); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); var var_Appearance = CascadeTree1.VisualAppearance; var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABa0GACAADACAxRDgMQBQKAAzAJBIYhiG4cYCgMYxXDOCYXABCEYRXBIZQ7BKNIxjSJwFgkAoJDYOMjwlDKEgADDFEgjJBkRxtDCPIDnGQoD" + "iGI4vSrCQ4yDA8GxCGSfIrjKiYbiGNY8RgZCiOMAFJSpC6gZRoSq4doGGJLQiDMaAdBNHyZKqpbQqeCZPDINQlWzbcrjKKFYQTOi7I4sCbYcqKA5PTbNdYyVBMWxfGIb" + "aIkXAcBjuO4hWbFdASRQdDYtHTIbzjCxLcgMD4gRwWCYNSAGRZJLDKK4gSh6eorHQAX4AGabFBOP5fC7TNJ0OKLRrkAJub5eFx3LJ97ohbLsOzYZK2ByDFqiMLGQZMZx" + "vGWUBAnYfJImcOwLEiBp0gaGpekSBxjE+WZ2jse5Im2S5ZkGYhdn4EY6A4Q4vAOWJ6H0V4oEgIgSFAGhGDGUB1ByBhVBUAwyhKMQIE2AgRjCWQJAoEIWk2SxCAGBBghQ" + "eJYkMZIYBYIYoHIG4HGICB+CKB4iEiBglgaUAzhiJAZA+Q4Qk2CxiniOgwgyYwolYMYNmMQw2CoGQihiLg5g+YxpAIOINiOOJ2CyEBkgkDhKhCJBQAI2IlAkJhMgqZBp" + "EYS4UiSGQ2E+FglHkdg5haI5pHIVoViYCQeF6vZJhYY4aCWWYqGyGpkimOhnhyZQ4nIToYGcSY+ESFQnHmGhwh+YpphYO4gmKOlEiGKIKBaCohmeQ4tkUQJQBAgI="); var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAEhABO0GACAADACAxRDgMQBQKAAzAJBIYhiG4cYCgMYxXDOCYXABCEYRXBIZQ7BKNIxjSJwFgkAoJDYOMjwlDKEgADDFEgjDBkRxtDCPIDnGQoD" + "iGI4vSrCQ4zHQkOx9C6NKLjOQaMhwcJPABTZwRRQMUyLAiQRioGKKJgkC4cAxIFhRXSVIyhC6XRiGURbJquLw1DBbEI3BaUOS7HqOK7vCZ7cACVYqQjLMrzCK8ZxLPqb" + "ZznOjZXoCKJDQzVYADFRVd4rMK9QABWw4YqWZYXX7kUDxbTdEYzPQAMw1GCcbxmF6eWbCNq3LidXTnOK3dwkO55cyuA6oazi8T6Bi2M6DDQNGSzZiuGZ9YSOOIwHJIN4" + "QDSUpYmQOoJA6KxVlCDBsnwOx9iWUhfiCThzjUHZun2WgSAiBIUA0JgziGVJkGWUZAkEUoyBEN51BsDYQhCIQJGqHAUCAGBGA0RwtDcVIgkgNgOgOYQIDiXYEmESBWBa" + "BZhggTgSgYYZIHYGoDGGaIGBiBpiCiFJdgkIksiiChhliLgsgYYpoj4F4MGMKBWDSDRhngMg4gcIQYnYPoEE6N4ZAMQBAICA="); CascadeTree1.SelBackColor = 16777216; CascadeTree1.SelForeColor = 0; CascadeTree1.BackColorHeader = 33554432; CascadeTree1.ScrollPartVisible(0,65536) = true; CascadeTree1.ScrollPartVisible(1,65536) = true; CascadeTree1.ScrollPartVisible(2,65536) = true; CascadeTree1.ScrollWidth = 4; CascadeTree1.Background(276) = 15790320; CascadeTree1.Background(260) = 8421504; CascadeTree1.ScrollHeight = 4; CascadeTree1.Background(404) = CascadeTree1.Background(276); CascadeTree1.Background(388) = CascadeTree1.Background(260); CascadeTree1.Background(511) = CascadeTree1.Background(276); CascadeTree1.Background(18) = 12895428; CascadeTree1.Background(142) = CascadeTree1.Background(18); CascadeTree1.Background(141) = CascadeTree1.Background(18); CascadeTree1.Background(170) = 2; CascadeTree1.BackColorSortBar = CascadeTree1.BackColor; CascadeTree1.EndUpdate(); CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 3; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "RO\\CJ|BV|CS"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
41 |
How can I change the visual appearance of the selection/header
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> // Columns("StateCode").Visible = False // Columns("StateName").SortOrder = 1 var var_View = CascadeTree1.View; var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var_View.Columns.Item("CountryCode").Visible = false; var_View.Columns.Item("CountryName").SortOrder = 1; var var_Object = var_View.Columns.Item("Name"); var_View.EndUpdate(); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); var var_Appearance = CascadeTree1.VisualAppearance; var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABWYDg6AADACAxRDgMQBQKAAzAJBIYhiG4cYCgMYxXDOCYXABCEYRXBIZQ7BKNIxjSJwFgmEgADCNAwgFBIcBhE4ZIKkEYoMiONoYR5Ac4yF" + "AcQxHE6TZRgeDZToWN48TZLEB0VRFGL1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bAbwFigHoDMDYgwEBRCGFgOIERxAAH+IgMQiA3AMBwIsB4RhuAsEUCMUwKRZh4E2BMAwGBRiFAiFYFIRQRCtAmEUDgTQKCRDcC4YoS" + "BeBUHGBAbgGBIiMFSI8XAqQNiGG4HARwEQ/A1GMKEJQVRDjYHUBsSI5gejHFQPkDoBQWB2BUMMeAeAHCJASCEUgLBDiQAGHQMQig0gGB4AcHghBJAyCEEkCoaQMApFIL" + "wR4kg5BuCUJUHILwRgQHiFMSQUhHBKCSAkFgMQig8EYBUCQPA5hICSFpKgeBzCUHEKANwjAwhTBAMcPgrRLgjHkF0ZYmQWgtFKKwW4lApDCCuEwLIYQXjFCYLUCochwB" + "yGWMkTQOxzB4HKJccQrgyhMGSJ0Go5hCDTA2MMDwZRKgxH2DQEw+ByicBmIQVYTRYhXBsMUMIVhNjjEkHUZw0RvA5BOCgY4FRJiiDqE4BI7QcCmGSFMToExogVCcOkbI" + "OxzhaBmJ0AYnA1AMdoCsKIJQEgfHoB4QQDAJCtCGGgHoEQMDiFtPIKQrAdDNHiAMEAICAgA=="); CascadeTree1.SelBackColor = 16777216; CascadeTree1.SelForeColor = 0; CascadeTree1.BackColorHeader = 33554432; CascadeTree1.ScrollPartVisible(0,65536) = true; CascadeTree1.ScrollPartVisible(1,65536) = true; CascadeTree1.ScrollPartVisible(2,65536) = true; CascadeTree1.ScrollWidth = 4; CascadeTree1.Background(276) = 15790320; CascadeTree1.Background(260) = 8421504; CascadeTree1.ScrollHeight = 4; CascadeTree1.Background(404) = CascadeTree1.Background(276); CascadeTree1.Background(388) = CascadeTree1.Background(260); CascadeTree1.Background(511) = CascadeTree1.Background(276); CascadeTree1.Background(18) = 12895428; CascadeTree1.Background(142) = CascadeTree1.Background(18); CascadeTree1.Background(141) = CascadeTree1.Background(18); CascadeTree1.Background(170) = 2; CascadeTree1.BackColorSortBar = CascadeTree1.BackColor; CascadeTree1.EndUpdate(); CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 3; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "RO\\CJ"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
40 |
How can I format a column so it display its content in a different way
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> // Columns("StateCode").Visible = False var var_View = CascadeTree1.View; var_View.BeginUpdate(); var_View.ContinueColumnScroll = false; var_View.ScrollBySingleLine = true; var_View.DrawGridLines = -1; var_View.EnsureVisibleColumn("Date"); var_View.Columns.Item("CountryCode").Visible = false; var var_Object = var_View.Columns.Item("Date"); var var_Object1 = var_View.Columns.Item("Function"); var var_Object2 = var_View.Columns.Item("Coordinates"); var var_Object3 = var_View.Columns.Item("Status"); var_View.EndUpdate(); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.FitCascadeColumns = 7; CascadeTree1.Mode = 3; CascadeTree1.ScrollWidth = 4; CascadeTree1.ScrollHeight = 4; CascadeTree1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\OR"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
39 |
How can I add a position column
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> var var_View = CascadeTree1.View; var var_Column = var_View.Columns.Add("Pos"); var_Column.Width = 32; var_Column.AllowSizing = false; var_Column.Position = 0; var_Column.FormatColumn = "1 pos ``"; var_Column.Def(4) = 15790320; var_Column.Alignment = 2; var_Column.HeaderAlignment = var_Column.Alignment; var_Column.Def(49) = 2; var_Column.Def(48) = 2; var_Column.Def(52) = 2; var_Column.Def(53) = 2; var_View.CountLockedColumns = 1; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 3; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\IA"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
38 |
How can I display icons or images
|
37 |
How can I turn-on the control's status bar
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> CascadeTree1.StatusBarLabel = CascadeTree1.FormatABC("`<b>` + ( value replace `\\\\` with ` </b><font ;6><off 4>` )",CascadeTree1.Name,null,null); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewEndChanging(Operation)" LANGUAGE="JScript"> CascadeTree1.StatusBarLabel = CascadeTree1.FormatABC("`<b>` + ( value replace `\\\\` with ` </b><font ;6><off 4>` )",CascadeTree1.Name,null,null); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.StatusBarVisible = 2; CascadeTree1.StatusBarHeight = 24; CascadeTree1.Mode = 3; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Name = "Romania\\Cluj\\Baciu*"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
36 |
How can I disable incremental searching
|
35 |
ScrollBar extension
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> // Columns("StateCode").Visible = False var var_View = CascadeTree1.View; var_View.ColumnAutoResize = true; var_View.Columns.Item("CountryCode").Visible = false; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.ScrollPartVisible(0,65536) = true; CascadeTree1.ScrollPartVisible(1,65536) = true; CascadeTree1.ScrollPartVisible(2,65536) = true; CascadeTree1.ScrollWidth = 4; CascadeTree1.Background(276) = 15790320; CascadeTree1.Background(260) = 8421504; CascadeTree1.ScrollHeight = 4; CascadeTree1.Background(404) = CascadeTree1.Background(276); CascadeTree1.Background(388) = CascadeTree1.Background(260); CascadeTree1.Background(511) = CascadeTree1.Background(276); CascadeTree1.Background(18) = 12895428; CascadeTree1.Background(142) = CascadeTree1.Background(18); CascadeTree1.Background(141) = CascadeTree1.Background(18); CascadeTree1.Background(170) = 2; CascadeTree1.EndUpdate(); CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 3; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\AK"; CascadeTree1.DefaultView(null).Columns.Item("CountryName").SortOrder = 1; CascadeTree1.DefaultView(null).NextView.Columns.Item("StateName").SortOrder = 1; var var_View = CascadeTree1.DefaultView(null).NextView.NextView; var_View.ColumnAutoResize = false; var var_Column = var_View.Columns.Item("Name"); var_Column.SortOrder = 1; var_Column.Width = 128; var var_Items = var_View.Items; var_Items.SelectItem(var_Items.FindItem("Anchorage","Name",null)) = true; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
34 |
How can I access the next/prev/parent/child view
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> // Columns("StateCode").Visible = False var var_View = CascadeTree1.View; var_View.ColumnAutoResize = true; var_View.Columns.Item("CountryCode").Visible = false; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 2; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "RO\\CJ"; CascadeTree1.DefaultView(null).Columns.Item("CountryName").SortOrder = 1; CascadeTree1.DefaultView(null).NextView.Columns.Item("StateName").SortOrder = 1; var var_View = CascadeTree1.DefaultView(null).NextView.NextView; var_View.BeginUpdate(); var_View.ColumnAutoResize = false; var var_Column = var_View.Columns.Item("Name"); var_Column.Width = 128; var_Column.SortOrder = 1; var_View.SingleSort = false; var_View.AllowGroupBy = true; var_View.Columns.Item("Status").SortOrder = 2; var_View.TreeColumnIndex = var_View.Columns.Item("Name").Index; var_View.EndUpdate(); CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
33 |
Predefined Keywords of ShowContextMenu property
|
32 |
How can I display the identifiers of the control's context menu (debug)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> // Columns("StateCode").Visible = False var var_View = CascadeTree1.View; var_View.ColumnAutoResize = true; var_View.Columns.Item("CountryCode").Visible = false; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewEndChanging(Operation)" LANGUAGE="JScript"> alert( CascadeTree1.ExecuteContextMenu ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 3; CascadeTree1.Background(18) = 12895428; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\AK"; CascadeTree1.ShowContextMenu = "[debug]Popup(Item 1[id=1001],Item 2[id=1002],Item 3[id=1003]),[sep],Exit[def][id=1000]"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
31 |
ShowContextMenu usage
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> // Columns("StateCode").Visible = False var var_View = CascadeTree1.View; var_View.ColumnAutoResize = true; var_View.Columns.Item("CountryCode").Visible = false; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewEndChanging(Operation)" LANGUAGE="JScript"> alert( CascadeTree1.ExecuteContextMenu ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 3; CascadeTree1.Background(18) = 12895428; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\AK"; CascadeTree1.ShowContextMenu = "Popup(Item 1[id=1001],Item 2[id=1002],Item 3[id=1003]),[sep],Exit[def][id=1000]"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
30 |
How can I resize automatically all views, when the control is resized
|
29 |
How can I hide some columns
|
28 |
Is it possible to disable resizing the cascade columns
|
27 |
SplitFixCascadeMode Mode
|
26 |
FixCascadeMode Mode
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Background(18) = 12895428; CascadeTree1.DefColumnWidth = 96; CascadeTree1.Mode = 0; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\AK"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
25 |
SplitEqualCascadeMode Mode
|
24 |
Default Mode
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Background(18) = 12895428; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\AK"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
23 |
SingleCascadeMode ( single-view )
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 1; var var_View = CascadeTree1.DefaultView(null); var_View.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Cities Where CountryCode =" + " 'RO' "; var_View.AllowGroupBy = true; var_View.SortBarVisible = true; var_View.Columns.Item("StateCode").SortOrder = 1; var_View.Name = "Name"; CascadeTree1.Name = "Isaccea"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
22 |
How can I display the current selection, as a path
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> CascadeTree1.StatusBarLabel = CascadeTree1.Name; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewEndChanging(Operation)" LANGUAGE="JScript"> CascadeTree1.StatusBarLabel = CascadeTree1.Name; </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.StatusBarVisible = 2; CascadeTree1.Mode = 3; CascadeTree1.DataSource = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb;Member=Select * FROM Countries;Key=CountryCode;" + "Tag=Country;Name=CountryName >>> Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=St" + "ateName;Tag=State ||| Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name >>> Member=Se" + "lect * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=City;Name=Na" + "me"; CascadeTree1.Select = "US\\AK"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
21 |
How can I add multiple-views to the control
|
20 |
I wish I select items based on names, rather than keys. Is that possible
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> CascadeTree1.View.ColumnAutoResize = CascadeTree1.FormatABC("not(A = `City`)",.View.Tag,null,null); var label = CascadeTree1.FormatABC("`<b>Select = </b>` + value",CascadeTree1.Select,null,null); label = CascadeTree1.FormatABC("A + `<br>` + `<b>Name = </b>` + B replace `|` with ` `",label,CascadeTree1.Name,null); CascadeTree1.StatusBarLabel = label; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewEndChanging(Operation)" LANGUAGE="JScript"> var label = CascadeTree1.FormatABC("`<b>Select = </b>` + value",CascadeTree1.Select,null,null); label = CascadeTree1.FormatABC("A + `<br>` + `<b>Name = </b>` + B replace `|` with ` `",label,CascadeTree1.Name,null); CascadeTree1.StatusBarLabel = label; </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 2; CascadeTree1.StatusBarVisible = 18; var ds = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb"; var dm1 = "Member=Select * FROM Countries;Key=CountryCode;Tag=Country;Name=CountryName"; ds = CascadeTree1.FormatABC("A + `;` + B",ds,dm1,null); var dm2 = "Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=StateName;Tag=State ||| Member=Sel" + "ect * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name"; ds = CascadeTree1.FormatABC("A + ` >>> ` + B",ds,dm2,null); var dm3 = "Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=Ci" + "ty;Name=Name"; ds = CascadeTree1.FormatABC("A + ` >>> ` + B",ds,dm3,null); CascadeTree1.DataSource = ds; CascadeTree1.Name = "Romania\\Cluj\\Baciu*"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
19 |
I've noticed that I can't select multiple items. How can I do that
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> var bColumnAutoResize = CascadeTree1.FormatABC("not(A = `City`)",CascadeTree1.View.Tag,null,null); var var_View = CascadeTree1.View; var_View.SingleSel = false; var_View.ColumnAutoResize = bColumnAutoResize; var label = CascadeTree1.FormatABC("`<b>Select = </b>` + value",CascadeTree1.Select,null,null); label = CascadeTree1.FormatABC("A + `<br>` + `<b>Name = </b>` + B replace `|` with ` `",label,CascadeTree1.Name,null); CascadeTree1.StatusBarLabel = label; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewEndChanging(Operation)" LANGUAGE="JScript"> var label = CascadeTree1.FormatABC("`<b>Select = </b>` + value",CascadeTree1.Select,null,null); label = CascadeTree1.FormatABC("A + `<br>` + `<b>Name = </b>` + B replace `|` with ` `",label,CascadeTree1.Name,null); CascadeTree1.StatusBarLabel = label; </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 2; CascadeTree1.StatusBarVisible = 18; CascadeTree1.StatusBarHeight = 48; var ds = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb"; var dm1 = "Member=Select * FROM Countries;Key=CountryCode;Tag=Country;Name=CountryName"; ds = CascadeTree1.FormatABC("A + `;` + B",ds,dm1,null); var dm2 = "Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Name=StateName;Tag=State ||| Member=Sel" + "ect * FROM Cities WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City;Name=Name"; ds = CascadeTree1.FormatABC("A + ` >>> ` + B",ds,dm2,null); var dm3 = "Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=Ci" + "ty;Name=Name"; ds = CascadeTree1.FormatABC("A + ` >>> ` + B",ds,dm3,null); CascadeTree1.DataSource = ds; CascadeTree1.Select = "RO\\CJ|D*"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
18 |
How do I programmatically selects a path/item
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> var bColumnAutoResize = CascadeTree1.FormatABC("not(A = `City`)",CascadeTree1.View.Tag,null,null); CascadeTree1.View.ColumnAutoResize = bColumnAutoResize; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewEndChanging(Operation)" LANGUAGE="JScript"> CascadeTree1.StatusBarLabel = CascadeTree1.Select; </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 2; CascadeTree1.StatusBarVisible = 1; var ds = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb"; var dm1 = "Member=Select * FROM Countries;Key=CountryCode;Tag=Country"; ds = CascadeTree1.FormatABC("A + `;` + B",ds,dm1,null); var dm2 = "Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Tag=State ||| Member=Select * FROM Citi" + "es WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City"; ds = CascadeTree1.FormatABC("A + ` >>> ` + B",ds,dm2,null); var dm3 = "Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=Ci" + "ty"; ds = CascadeTree1.FormatABC("A + ` >>> ` + B",ds,dm3,null); CascadeTree1.DataSource = ds; CascadeTree1.Select = "RO\\CJ"; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
17 |
DataSource/DataMember/Key/Tag
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> CascadeTree1.StatusBarLabel = CascadeTree1.FormatABC("value replace `data source` with `<b><fgcolor=808080>Source</fgcolor></b>` replace `Source` with `<b><fgcolor=808080>Source</fg" + "color></b>` replace `Member` with `<b><fgcolor=808080>Member</fgcolor></b>` replace `Key` with `<b><fgcolor=808080>Key</fgcolor>" + "</b>` replace `Tag` with `<b><fgcolor=808080>Tag</fgcolor></b>` replace `;` with `;<br>`",CascadeTree1.View.DataSource,null,null); var bColumnAutoResize = CascadeTree1.FormatABC("not(A = `City`)",CascadeTree1.View.Tag,null,null); var nWidth = CascadeTree1.FormatABC("A = `City` ? B : C",CascadeTree1.View.Tag,CascadeTree1.View.WidthToFit,CascadeTree1.View.Width); var var_View = CascadeTree1.View; var_View.ColumnAutoResize = bColumnAutoResize; var_View.Width = nWidth; </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.StatusBarHeight = 58; CascadeTree1.StatusBarVisible = 18; var ds = "Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb"; var dm1 = "Member=Select * FROM Countries;Key=CountryCode;Tag=Country"; ds = CascadeTree1.FormatABC("A + `;` + B",ds,dm1,null); var dm2 = "Member=Select * FROM States WHERE CountryCode IN (<%Parent.CountryCode%>);Key=StateCode;Tag=State ||| Member=Select * FROM Citi" + "es WHERE CountryCode IN (<%Parent.CountryCode%>);Tag=City"; ds = CascadeTree1.FormatABC("A + ` >>> ` + B",ds,dm2,null); var dm3 = "Member=Select * FROM Cities WHERE CountryCode IN (<%Parent.Parent.CountryCode%>) AND StateCode IN (<%Parent.StateCode%>);Tag=Ci" + "ty"; ds = CascadeTree1.FormatABC("A + ` >>> ` + B",ds,dm3,null); CascadeTree1.DataSource = ds; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
16 |
DataSource (view, data source, data member, ACCDB)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.StatusBarVisible = 2; CascadeTree1.StatusBarLabel = "<b>DataSource</b> could \"Data Source=...;Data Member=...\" or \"Source=...;Member=...\" "; CascadeTree1.DefColumnWidth = 336; var ds = "Data Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.accdb"; var dm = "Data Member=Select * FROM Countries"; var var_View = CascadeTree1.DefaultView(null); var_View.DataSource = CascadeTree1.FormatABC("A + `;` + B",ds,dm,null); var_View.ColumnAutoResize = true; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
15 |
DataSource (view, data source, data member, MDB)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.StatusBarVisible = 2; CascadeTree1.StatusBarLabel = "<b>DataSource</b> could \"Data Source=...;Data Member=...\" or \"Source=...;Member=...\" "; CascadeTree1.DefColumnWidth = 336; var ds = "Data Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.mdb"; var dm = "Data Member=Select * FROM Countries"; var var_View = CascadeTree1.DefaultView(null); var_View.DataSource = CascadeTree1.FormatABC("A + `;` + B",ds,dm,null); var_View.ColumnAutoResize = true; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
14 |
DataSource (view, ADODB, ACCDB)
|
13 |
DataSource (view, ADODB, MDB)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.StatusBarVisible = 2; CascadeTree1.StatusBarLabel = "<b>DataSource</b> could be string (Source/Member), ADO or DAO objects"; CascadeTree1.DefColumnWidth = 336; var ado = new ActiveXObject("ADODB.Recordset"); ado.Open("Countries","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Access\\cities.mdb",3,3,null); var var_View = CascadeTree1.DefaultView(null); var_View.DataSource = ado; var_View.ColumnAutoResize = true; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
12 |
DataSource (control, data source, data member, ACCDB)
|
11 |
DataSource (control, data source, data member, MDB)
|
10 |
DataSource (control, ADODB, ACCDB)
|
9 |
DataSource (control, ADODB, MDB)
|
8 |
DataSource (view, XMLDOMDocument)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.StatusBarVisible = 2; CascadeTree1.StatusBarLabel = "<b>DataSource</b> could be a XML file name, a URL, an IStream, an IXMLDOMDocument"; CascadeTree1.DefColumnWidth = 336; var var_View = CascadeTree1.DefaultView(null); var xml = new ActiveXObject("MSXML.DOMDocument"); xml.load("C:\\Program Files\\Exontrol\\ExCascadeTree\\Sample\\Testing.xml"); var_View.DataSource = xml; var_View.ColumnAutoResize = true; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
7 |
DataSource (view, XML, file)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="Error(Error,Description)" LANGUAGE="JScript"> alert( "Error" ); alert( Description ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.StatusBarVisible = 2; CascadeTree1.StatusBarLabel = "<b>DataSource</b> could be a XML file name, a URL, an IStream, an IXMLDOMDocument"; CascadeTree1.DefColumnWidth = 336; var var_View = CascadeTree1.DefaultView(null); var_View.DataSource = "http://www.exontrol.net/testing.xml"; var_View.ColumnAutoResize = true; CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
6 |
DataSource (control, XMLDOMDocument)
|
5 |
DataSource (control, XML, file)
|
4 |
How can I get the selected items (sample 1)
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> var var_View = CascadeTree1.View; var k = var_View.ParentView.Value(null); var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var_View.Key = -1; var_View.Columns.Add(k); var var_Items = var_View.Items; var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 1`",k,null,null)); var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 2`",k,null,null)); var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 3`",k,null,null)); var_View.EndUpdate(); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewEndChanging(Operation)" LANGUAGE="JScript"> alert( "End" ); alert( Operation ); var var_Items = CascadeTree1.View.Items; alert( "FocusItem" ); alert( var_Items.CellCaption(var_Items.FocusItem,0) ); alert( "SelectedItem" ); alert( var_Items.CellCaption(var_Items.SelectedItem(0),0) ); </SCRIPT> <SCRIPT FOR="CascadeTree1" EVENT="ViewStartChanging(Operation)" LANGUAGE="JScript"> alert( "Start" ); alert( Operation ); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); var var_View = CascadeTree1.View; var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var_View.Columns.Add("Default"); var_View.Key = 0; var_View.LinesAtRoot = -1; var var_Items = var_View.Items; var_Items.AddItem("Item A"); var_Items.SelectItem(var_Items.AddItem("Item B")) = true; var_Items.AddItem("Item C"); var_View.EndUpdate(); CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
3 |
Can I use this control as a simple tree
<BODY onload="Init()"> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); CascadeTree1.Mode = 1; var var_View = CascadeTree1.View; var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var_View.Columns.Add("Default"); var_View.Key = -1; var_View.LinesAtRoot = -1; var var_Items = var_View.Items; var_Items.AddItem("Item A"); var_Items.InsertItem(var_Items.AddItem("Item B"),null,"Child"); var_Items.AddItem("Item C"); var_View.EndUpdate(); CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
2 |
How can I use this control
<BODY onload="Init()"> <SCRIPT FOR="CascadeTree1" EVENT="CreateView(View)" LANGUAGE="JScript"> var var_View = CascadeTree1.View; var k = var_View.ParentView.Value(null); var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var_View.Columns.Add(k); var var_Items = var_View.Items; var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 1`",k,null,null)); var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 2`",k,null,null)); var_Items.AddItem(CascadeTree1.FormatABC("A + `-> Sub-Item 3`",k,null,null)); var_View.EndUpdate(); </SCRIPT> <OBJECT CLASSID="clsid:4DD131BB-181C-428B-B0F3-8449ADA3AF49" id="CascadeTree1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { CascadeTree1.BeginUpdate(); var var_View = CascadeTree1.View; var_View.BeginUpdate(); var_View.ColumnAutoResize = true; var_View.Columns.Add("Default"); var_View.Key = 0; var var_Items = var_View.Items; var_Items.AddItem("Item A"); var_Items.SelectItem(var_Items.AddItem("Item B")) = true; var_Items.AddItem("Item C"); var_View.EndUpdate(); CascadeTree1.EndUpdate(); } </SCRIPT> </BODY> |
1 |
How do I change the control's background color
|