Beispiel #1
0
        protected void astvMyTree2_OnSelectedNodeChanged(object src, ASTreeViewNodeSelectedEventArgs e)
        {
            //tb1.Text = e.NodeText;
            ASTreeViewNode selectedNode = astvMyTree2.GetSelectedNode();

            if (selectedNode != null)
            {
                lblRoot2.Text = selectedNode.NodeValue;
                tbItem2.Text  = (string)OleDbHelper.ExecuteScalar(base.NorthWindConnectionString, CommandType.Text, "select ProductName from ProductsTree where ProductID=" + lblRoot2.Text);
            }
        }
Beispiel #2
0
        protected void astvMyTree_OnSelectedNodeChanged(object src, ASTreeViewNodeSelectedEventArgs e)
        {
            //tb1.Text = e.NodeText;
            ASTreeViewNode selectedNode = astvMyTree1.GetSelectedNode();

            if (selectedNode != null)
            {
                lblRoot.Text = selectedNode.NodeValue;

                tbItem.Text       = (string)OleDbHelper.ExecuteScalar(base.NorthWindConnectionString, CommandType.Text, "select ProductName from ProductsTree where ProductID=" + lblRoot.Text);
                btnUpdate.Enabled = cekOwner(ddlRoot1.SelectedValue);
                if (btnUpdate.Enabled)
                {
                    btnUpdate.Enabled = cekOwner(lblRoot.Text);
                }
            }
        }
Beispiel #3
0
        public void OnSelectedNodeChange(object src, ASTreeViewNodeSelectedEventArgs e)
        {
            OnSelectionChange(e.NodeValue);

            if (e.NodeValue.StartsWith("f"))
            {
                if (astvMyTree.GetSelectedNode().ParentNode.NodeValue == "root")
                {
                    ((PageBase)Page).SelectedFolderId = null;
                }
                else
                {
                    ((PageBase)Page).SelectedFolderId = int.Parse(e.NodeValue.Substring(1));
                }
                //JJ Unset SurveyId if Folder is Selected
                ((PageBase)Page).SurveyId    = -1;
                ((PageBase)Page).SurveyTitle = null;
            }
            else
            {
                ((PageBase)Page).SurveyId = int.Parse(e.NodeValue.Substring(1));

                ((PageBase)Page).SurveyTitle = e.NodeText;
                if (astvMyTree.GetSelectedNode().ParentNode.NodeValue == "root")
                {
                    ((PageBase)Page).SelectedFolderId = null;
                }
                else
                {
                    ((PageBase)Page).SelectedFolderId = int.Parse(astvMyTree.GetSelectedNode().ParentNode.NodeValue.Substring(1));
                }
            }

            StoreOpenCloseState();

            Page.Response.Redirect(string.Format("{0}?surveyid={1}&menuindex={2}", UINavigator.SurveyListHyperLink, ((PageBase)Page).getSurveyId(), (int)((PageBase)Page).MenuIndex));
        }
        protected void astvMyTree_OnSelectedNodeChanged(object src, ASTreeViewNodeSelectedEventArgs e)
        {
            string toConsole = string.Format(">>OnSelectedNodeChanged selected: text:{0} value:{1}", e.NodeText, e.NodeValue);

            this.divConsole.InnerHtml += (toConsole + "<br />");
        }
		protected void astvMyTree_OnSelectedNodeChanged( object src, ASTreeViewNodeSelectedEventArgs e )
		{
			string toConsole = string.Format( ">>OnSelectedNodeChanged selected: text:{0} value:{1}", e.NodeText, e.NodeValue );
			this.divConsole.InnerHtml += ( toConsole + "<br />" );
		}
        public void OnSelectedNodeChange(object src, ASTreeViewNodeSelectedEventArgs e)
        {

            OnSelectionChange(e.NodeValue);

            if (e.NodeValue.StartsWith("f"))
            {
                if (astvMyTree.GetSelectedNode().ParentNode.NodeValue == "root")
                    ((PageBase)Page).SelectedFolderId = null;
                else
                    ((PageBase)Page).SelectedFolderId = int.Parse(e.NodeValue.Substring(1));
                //JJ Unset SurveyId if Folder is Selected
                ((PageBase)Page).SurveyId = -1;
                ((PageBase)Page).SurveyTitle = null;
            }
            else
            {
                ((PageBase)Page).SurveyId = int.Parse(e.NodeValue.Substring(1));

                ((PageBase)Page).SurveyTitle = e.NodeText;
                if (astvMyTree.GetSelectedNode().ParentNode.NodeValue == "root")
                    ((PageBase)Page).SelectedFolderId = null;
                else
                    ((PageBase)Page).SelectedFolderId = int.Parse(astvMyTree.GetSelectedNode().ParentNode.NodeValue.Substring(1));

            }

            StoreOpenCloseState();

            Page.Response.Redirect(string.Format("{0}?surveyid={1}&menuindex={2}", UINavigator.SurveyListHyperLink, ((PageBase)Page).getSurveyId(), (int)((PageBase)Page).MenuIndex));
        }
Beispiel #7
0
 protected void astvMyTree_OnSelectedNodeChanged(object src, ASTreeViewNodeSelectedEventArgs e)
 {
     //TreeViewSelectedNodeChanged();
 }
        //protected void rcbSitemapList_SelectedIndexChanged(object o, SelectedIndexChangedEventArgs e)
        //{
        //    InititializeSiteMapTree();
        //}

        #endregion DropdownList Events

        #region Treeview Event

        protected void treeSitePhysicalStructure_OnSelectedNodeChanged(object src, ASTreeViewNodeSelectedEventArgs e)
        {
            //BindList();
        }