亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

DevExpress控件ASPxTreeView問題

DevExpress控件ASPxTreeView問題

茅侃侃 2018-12-06 17:20:38
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="DormTreeView.aspx.cs" Inherits="PdmlWeb.Pages.StuDorm.DormTreeView"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <dx:ASPxTreeView ID="dxtvOrg" Width="100%" ShowExpandButtons="true" runat="server" AutoPostBack="true" OnNodeClick="dxtvOrg_NodeClick"> </dx:ASPxTreeView> </form></body></html> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { setTreeViewData(); } } protected void dxtvOrg_NodeClick(object source, TreeViewNodeEventArgs e) { if (!"ALL".Equals(e.Node.Name)) { sessionInfo = (sSessionInfo)Session["sessionInfo"]; sessionInfo.dataInfo = e.Node.Name; sessionInfo.dataInfoTxt = WebUtils.GetOrgAllName((DataTable)Session["dtOrg"], int.Parse(e.Node.Name)); Session.Add("sessionInfo", sessionInfo); switch (sessionInfo.selectMenu) { case eMenuID.DormInfo: Response.Write("<script>window.parent.window.frames[2].location.href='DormInfo.aspx';</script>"); break; case eMenuID.DormQuery: Response.Write("<script>window.parent.window.frames[2].location.href='DormQuery.aspx';</script>"); break; case eMenuID.DormFinCost: case eMenuID.DormFinQuery: Response.Write("<script>window.parent.window.frames[2].location.href='DormFin.aspx';</script>"); break; case eMenuID.DormFinRpt: Response.Write("<script>window.parent.window.frames[2].location.href='DormFinRpt.aspx';</script>"); break; } } } 用ASPxTreeView生成動態樹,點擊樹時,第三級節點會向右平鋪。注:頁面加載時沒有任何問題,點擊第三級節點時,同級的節點會依次橫向排列。 如:第一節點        第二節點    第三節點1    第三節點2    第三節點3 點擊后會出現下列這種情況: 第一節點   第二節點        第三節點1             第三節點2                  第三節點3
查看完整描述

2 回答

?
嗶嗶one

TA貢獻1854條經驗 獲得超8個贊

該控件顯示與瀏覽器版本有關系,在IE9下瀏覽正常。

查看完整回答
反對 回復 2019-01-21
  • 2 回答
  • 0 關注
  • 778 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號