Web ADF 中的 Toc 控件
The table of contents, or Toc, control lists the layers on the map and shows what the features represent. A toc is buddied with a map control. As a result, checking a layer on in the toc control will draw it in the map control. Each resource associated with a map control may contain one or more layers. The toc control represents each resource as a group layer, which is a layer that contains layers.
The Toc control inherits from the TreeViewPlus control, which is a Web ADF control that allows you to display data in a tree-type control with expandable nodes. TreeViewPlus is also used in the TaskResults control. It is possible to programmatically alter the nodes in the Toc by adding, moving or deleting nodes. However, keep in mind that the typical use of the Toc and Web ADF involves client callbacks rather than full page postbacks, so that server-side methods to modify the Toc cannot ordinarily be done after startup in the browser.
Assembly: ESRI.ArcGIS.ADF.Web.UI.WebControls.dll
Class: ESRI.ArcGIS.ADF.Web.UI.WebControls.Toc
The only thing you have to do is set the Map property to the Map control when you have dragged a Toc control onto the web form.
posted on 2011-04-10 17:19 Joshua Leung 阅读(295) 评论(0) 编辑 收藏 举报