Пример #1
0
        protected void tvView_NodeSelected(object sender, ComponentArt.Web.UI.TreeViewNodeEventArgs e)
        {
            ViewState["StartRow"]       = 0;
            ViewState["EndRow"]         = Grid1.PageSize;
            this.Grid1.CurrentPageIndex = 0;

            BindGrid();
        }
        protected void tvDestinationOccurrence_NodeSelected(object sender, CompArt.TreeViewNodeEventArgs e)
        {
            //Save occurrence id if occurrence was selected
            if (e.Node.Depth == (int)DestinationLevel.Occurrence)
            {
                destinationOccurrenceId.Value   = e.Node.Value;
                destinationOccurrenceName.Value = e.Node.ParentNode.ParentNode.Text +
                                                  "\\n\\r ' + ' ' + ' " + e.Node.ParentNode.Text +
                                                  "\\n\\r ' + ' ' + ' ' + ' ' + ' " + e.Node.Text;
            }
            else
            {
                destinationOccurrenceId.Value   = "-1";
                destinationOccurrenceName.Value = "";
            }

            //Add children
            if (e.Node.Nodes.Count == 0)
            {
                PopulateChildNodes(e.Node, false);
            }
        }
 protected void tvDestinationOccurrence_NodeExpanded(object sender, CompArt.TreeViewNodeEventArgs e)
 {
 }