欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

歡迎來到入門教程網(wǎng)!

Flex

當(dāng)前位置:主頁 > 網(wǎng)絡(luò)編程 > Flex >

Flex中在Tree綁定數(shù)據(jù)后自動展開樹節(jié)點(diǎn)的方法

來源:本站原創(chuàng)|時間:2020-01-11|欄目:Flex|點(diǎn)擊: 次

用Flex/Flash做開發(fā)的同志們應(yīng)該會使用 expandChildrenOf(item,true)方法來使用Tree組件在綁定數(shù)據(jù)后自動展開所有樹型節(jié)點(diǎn)(不需要用戶再自己點(diǎn)擊展開節(jié)點(diǎn),會方 便許多),而在Flex開發(fā)幫忙文檔中很明確寫道:

"If you set dataProvider and then immediately call expandChildrenOf() you may not see the correct behavior. You should either wait for the component to validate or call the validateNow() method. "

第一種:(已驗(yàn)證)

復(fù)制代碼 代碼如下:

//全部展開,初始選中第一項(xiàng)

treePlayList.dataProvider=results;//刷新Tree的全部節(jié)點(diǎn)展開 - royanxin - royanxin的博客

treePlayList.validateNow(); //驗(yàn)證并更新此對象的屬性和布局,并重繪該對象(如果需要)。

treePlayList.selectedIndex=0;

treePlayList.expandChildrenOf(treePlayList.selectedItem,true);//全部展開

第二種:
復(fù)制代碼 代碼如下:

setTimeout(IniExpand, 1000); //延時1秒

private function IniExpand():void {
TreeView1.selectedIndex=1;
TreeView1.expandItem(TreeView1.selectedItem,true);
}

第三種:
復(fù)制代碼 代碼如下:

//全部展開,初始未選中任何選項(xiàng)
sysTree.validateNow();
for each(var item:XML in this.sysTree.dataProvider){
sysTree.expandChildrenOf(item,true);
}

注意:

 

上一篇:Flex彈出窗口請求Action函數(shù)示例

欄    目:Flex

下一篇:flex內(nèi)嵌html網(wǎng)頁示例代碼

本文標(biāo)題:Flex中在Tree綁定數(shù)據(jù)后自動展開樹節(jié)點(diǎn)的方法

本文地址:http://mengdiqiu.com.cn/a1/Flex/11597.html

網(wǎng)頁制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語言數(shù)據(jù)庫服務(wù)器

如果侵犯了您的權(quán)利,請與我們聯(lián)系,我們將在24小時內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有