当前位置: 首页>>代码示例>>C#>>正文


C# RadTreeNodeEventArgs类代码示例

本文整理汇总了C#中RadTreeNodeEventArgs的典型用法代码示例。如果您正苦于以下问题:C# RadTreeNodeEventArgs类的具体用法?C# RadTreeNodeEventArgs怎么用?C# RadTreeNodeEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RadTreeNodeEventArgs类属于命名空间,在下文中一共展示了RadTreeNodeEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PageTreeview_NodeDataBound

        protected void PageTreeview_NodeDataBound(object sender, RadTreeNodeEventArgs e)
        {
            CmsSitePath path = (CmsSitePath)e.Node.DataItem;

            if (path.IsDirectory)
            {
                if (path.Depth == 1)
                {
                    e.Node.Expanded = true;
                    e.Node.Text = RootNodeValue;
                }

                e.Node.ContextMenuID = "DirectoryContextMenu";
                e.Node.ImageUrl = "~/Images/Vista/folder.png";
                e.Node.Category = CmsSiteMap.NodeTypes.Directory.ToString();
            }
            else
            {
                e.Node.AllowDrop = false;
                e.Node.ContextMenuID = "PageContextMenu";
                e.Node.ImageUrl = "~/Images/Vista/aspx.png";
                e.Node.Category = CmsSiteMap.NodeTypes.Page.ToString();
            }
            e.Node.ToolTip = e.Node.GetFullPath("/");
        }
开发者ID:beachead,项目名称:gooey-cms-v2,代码行数:25,代码来源:Default.aspx.cs

示例2: Tree_NodeClick

 public void Tree_NodeClick (object sender, RadTreeNodeEventArgs e)
 {
     if (SelectedNodeChanged != null)
     {
         SelectedNodeChanged(this, new EventArgs());
     }
 }
开发者ID:SwarmCorp,项目名称:Swarmops,代码行数:7,代码来源:GeographyTree.ascx.cs

示例3: OnNodeDataBound

        protected override void OnNodeDataBound(RadTreeNodeEventArgs e)
        {
            base.OnNodeDataBound(e);

            RadTreeNode node = e.Node;
            DataRowView data = (DataRowView)node.DataItem;

            String itemType = data["ItemType"] == DBNull.Value ? null : (String)data["ItemType"];

            if (String.Compare(itemType, "Menu", true) == 0)
            {
                node.ImageUrl = "~/Media/Icons/menu.gif";
                node.Checkable = true;
                node.Expanded = false;
            }
            else if (String.Compare(itemType, "MenuSection", true) == 0)
            {
                node.ImageUrl = "~/Media/Icons/point-triangle.gif";
                node.Checkable = false;
                node.Expanded = true;
            }
            else if (String.Compare(itemType, "MenuItem", true) == 0)
            {
                node.ImageUrl = "~/Media/Icons/point-circle.gif";
                node.Checkable = false;
            }
        }
开发者ID:CsbSeminary,项目名称:WebSite,代码行数:27,代码来源:PageMenuSelector.cs

示例4: RadTreeView1_NodeClick

    void RadTreeView1_NodeClick(object sender, RadTreeNodeEventArgs e)
    {
        var item = e.Node as RadTreeNode;

        if (item.Level == 1)
        {
            RadPane_Nav.ContentUrl = "";
        }
        else if (item.Level==2)  // 如果使用了 AjaxManager,此处无法用 ID来标识对象,就是内置的 Level也行
        {

            // 组合文件路径
            //item.FullPath
            //"Telerik Controls/Single/RadAsyncUpload"

            //Request.Url.AbsoluteUri
            //"http://localhost:5656/Telerik/TelerikMain.aspx"

            string nav_url = Request.Url.AbsoluteUri.Substring(0, Request.Url.AbsoluteUri.LastIndexOf("/")) + item.FullPath.Substring(item.FullPath.IndexOf("/"))+".aspx";
            RadPane_Nav.ContentUrl = nav_url;

            // 不能用 ClientScript.RegisterStartupScript来注册客户端脚本对象
            //ClientScript.RegisterStartupScript(this.GetType(), "smmmmmm1", "alert('oj');", true);
            // 可以用 RadAjaxManager的 ResponseScripts对象进行注册
            //RadAjaxManager1.ResponseScripts.Add("alert('ok')");
        }
    }
开发者ID:nbnbnb,项目名称:DemoSite,代码行数:27,代码来源:TelerikMain.aspx.cs

示例5: radTrvFunction_NodeClick

 protected void radTrvFunction_NodeClick(object sender, RadTreeNodeEventArgs e)
 {
     string redirectPage = e.Node.Value;
     if (!String.IsNullOrEmpty(redirectPage))
     {
         Response.Redirect(redirectPage);
     }
 }    
开发者ID:groshugo,项目名称:unitedpharma,代码行数:8,代码来源:Admin.master.cs

示例6: PopulateNodeOnDemand

 /// <summary>
 /// Populates the node on demand.
 /// </summary>
 /// <param name="e">The <see cref="Telerik.Web.UI.RadTreeNodeEventArgs"/> instance containing the event data.</param>
 /// <param name="expandMode">The expand mode.</param>
 protected void PopulateNodeOnDemand(object sender,RadTreeNodeEventArgs e)
 {
     /// "-" is used in values. So for nodes having "-" in data, is failing. To Avoid "#" is uses instead
     string[] strValue = e.Node.Value.Split("#".ToCharArray());
     int intHierarchy = 0;
     int.TryParse(strValue[1], out intHierarchy);
     intHierarchy++;
     BindChildNodes(strValue[0],intHierarchy.ToString() , e.Node);
 }
开发者ID:vijaymca,项目名称:Dotnet,代码行数:14,代码来源:ReservoirDepositionalEnvPopup.ascx.cs

示例7: rtvSiteMaps_NodeExpand

    protected void rtvSiteMaps_NodeExpand(object sender, RadTreeNodeEventArgs e)
    {
        parentId = Convert.ToInt32(e.Node.Value);
        rtvSiteMaps.DataBind();

        List<RadTreeNode> list = rtvSiteMaps.Nodes.Cast<RadTreeNode>().ToList();
        foreach (RadTreeNode node in list)
            e.Node.Nodes.Add(node);
    }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:9,代码来源:WebPages.aspx.cs

示例8: Tree_NodeClick

    public void Tree_NodeClick(object sender, RadTreeNodeEventArgs e)
    {
        // Fire SelectedNodeChanged. This is a bit of a cheat since we don't really know that
        // the node has changed when the user clicks on a node - but the same behavior needs
        // to be triggered anyway.

        if (this.SelectedNodeChanged != null)
        {
            SelectedNodeChanged (this, new EventArgs());
        }
    }
开发者ID:SwarmCorp,项目名称:Swarmops,代码行数:11,代码来源:OrganizationTree.ascx.cs

示例9: rtvCompetencyValue_NodeClick

        protected void rtvCompetencyValue_NodeClick(object sender, RadTreeNodeEventArgs e)
        {
            var humanResourcesManager = new HumanResourcesManager(this);
            Employee employee = humanResourcesManager.GetEmployee(Company.CompanyId,
                                                            Convert.ToInt32(rtvCompetencyValue.SelectedValue));

            if (employee == null)
                return;

            pnlPurchaseCeilingValue.Visible = Convert.ToInt32(rtvCompetencyValue.SelectedValue) > 0;
            rbtCentralBuyer.Checked = employee.CentralBuyer ?? false;
        }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:12,代码来源:PurchaseCompetencyValue.aspx.cs

示例10: Tree_SelectedNodeChanged

    public void Tree_SelectedNodeChanged (object sender, RadTreeNodeEventArgs args)
    {

        this.DropGeographies.Text = SelectedGeography.Name;
        this.DropGeographies.Items[0].Text = SelectedGeography.Name;
        this.DropGeographies.Items[0].Value = SelectedGeography.Identity.ToString();
        this.DropGeographies.Items[0].Selected = true;
        if (selectedNodeChanged != null)
        {
            selectedNodeChanged(sender, args);
        }
    }
开发者ID:SwarmCorp,项目名称:Swarmops,代码行数:12,代码来源:WSGeographyTreeDropDown.ascx.cs

示例11: groupTree_OnNodeClick

 protected void groupTree_OnNodeClick(object sender, RadTreeNodeEventArgs e)
 {
     e.Node.Selected = true;
     pop.Visible = e.Node.Nodes.Count == 0;
     pop.Attributes["onclick"] = string.Format("popupPush('../Popup/PublishPush?{0}');",e.Node.Value);
     result.DataSource =
         HomoryContext.Value.Resource.Where(o => o.UserId == CurrentUser.Id && o.State == State.启用)
             .ToList()
             .Where(o => o.ResourceCatalog.Count(p => p.CatalogId == CatalogId && p.State == State.启用) > 0)
             .ToList();
     result.DataBind();
 }
开发者ID:Homory-Temp,项目名称:LeYi,代码行数:12,代码来源:CommonPush.ascx.cs

示例12: menu_NodeClick

    protected void menu_NodeClick(object sender, RadTreeNodeEventArgs e)
    {
        RadTreeNode parent = menu.FindNodeByValue(JobEnum.NumericSettings.ToString());
        if (parent == null)
            return;
        
        RadTreeNode restartNode = parent.Nodes.FindNodeByValue(JobEnum.RestartServer.ToString());
        if (restartNode == null)
            return;

        ISession session = (ISession)Context.Items[Constant.NHibernateSessionSign];
        ServicesList.ConfigurationService.RestartServer(this.CurrentPlayer, session);
    }
开发者ID:DF-thangld,项目名称:web_game,代码行数:13,代码来源:administrator.master.cs

示例13: rtvSitePages_NodeDataBound

    protected void rtvSitePages_NodeDataBound(object sender, RadTreeNodeEventArgs e)
    {
        var page = e.Node.DataItem as WebPage;

        //e.Node.FindControl<HtmlAnchor>("lnkSiteMaps").HRef = "WebPage.aspx?PageId=" + page.WebPageId;

        var lnkSiteMaps = e.Node.FindControl<HtmlAnchor>("lnkSiteMaps");
        lnkSiteMaps.Attributes["onclick"] = "top.$.lightbox('Site/WebPage.aspx?PageId=" + page.WebPageId + "&lightbox[iframe]=true');";
        lnkSiteMaps.Style.Add(HtmlTextWriterStyle.Color, page.IsPublished ? "default" : "grey");

        var lnkExternal = e.Node.FindControl<HtmlAnchor>("lnkExternal");
        lnkExternal.Attributes["class"] += page.IsPublished ? " webLink" : " draft";
        lnkExternal.Title = page.IsPublished ? "Publicado" : "Rascunho";

        if (page.WebPages.Count() > 0)
            e.Node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
    }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:17,代码来源:WebPages.aspx.cs

示例14: tree_NodeClick

 protected void tree_NodeClick(object sender, RadTreeNodeEventArgs e)
 {
     tree.CollapseAllNodes();
     if (e.Node.Level == 0 && e.Node.Nodes.Count > 0)
     {
         e.Node.Nodes[0].Selected = true;
         e.Node.Nodes[0].ExpandParentNodes();
         e.Node.Nodes[0].ExpandChildNodes();
         e.Node.Nodes[0].Expanded = true;
     }
     else
     {
         e.Node.Selected = true;
         e.Node.ExpandParentNodes();
         e.Node.ExpandChildNodes();
         e.Node.Expanded = true;
     }
     view.Rebind();
 }
开发者ID:Homory-Temp,项目名称:LeYi,代码行数:19,代码来源:UserSelector.aspx.cs

示例15: StandardsFilterRadTree_NodeDataBound

 protected void StandardsFilterRadTree_NodeDataBound(object sender, RadTreeNodeEventArgs e)
 {
     var node = e.Node;
     
     if(node.ParentNode == null)
     {
         node.CssClass = "RadTreeView_Thinkgate_TreeView_ParentNode";
         var link = (ImageButton)node.FindControl("editLink");
         if (link != null)
         {
             var dataRowView = (DataRowView)node.DataItem;
             HyperLink tempLink = new HyperLink();
             tempLink.NavigateUrl = "~/Controls/Standards/StandardsFilterEdit.aspx?filterName=";
             string linkURL = tempLink.ResolveClientUrl(tempLink.NavigateUrl) + dataRowView["Name"];
             link.OnClientClick = "customDialog({url: '" + linkURL + "', title: 'Edit Standard Filter',maximize: true}); return false;";
             link.Visible = true;
             link.Attributes["style"] = "cursor:pointer;";
         }
     }
 }
开发者ID:ezimaxtechnologies,项目名称:ASP.Net,代码行数:20,代码来源:StandardsFilter.ascx.cs


注:本文中的RadTreeNodeEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。