婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁(yè) > 知識(shí)庫(kù) > Flex4 DataGrid中如何嵌入RadioButton

Flex4 DataGrid中如何嵌入RadioButton

熱門(mén)標(biāo)簽:外呼系統(tǒng)號(hào)碼顯示 中山外呼系統(tǒng)中間件 地圖標(biāo)注多家店 車(chē)載電話機(jī)器人 南昌crm外呼系統(tǒng)如何 無(wú)錫電銷(xiāo)外呼系統(tǒng)代理 天津企業(yè)外呼系統(tǒng)代理商 什么行業(yè)需要電話機(jī)器人 廣州ai外呼系統(tǒng)業(yè)務(wù)
復(fù)制代碼 代碼如下:

s:DataGrid id="viewDg" width="100%" height="100%" fontFamily="微軟雅黑"
horizontalScrollPolicy="off" borderVisible="false"
dataProvider="{viewList}">
s:columns>
s:ArrayList>
s:GridColumn width="{wid*0.02}" resizable="false"
itemRenderer="Module_SchoolView.RadioButtonGridItemRenderer"/>


s:GridColumn width="{wid*0.25}" headerText="名稱" dataField="xysj02" resizable="false"/>

s:GridColumn width="{wid*0.25}" headerText="地名" dataField="xysj02name" resizable="false"/>

s:GridColumn width="{wid*0.35}" headerText="URL" dataField="xysj04" resizable="false"/>

s:GridColumn width="{wid*0.13}" headerText="備注" dataField="xysj05" resizable="false"/>
/s:ArrayList>
/s:columns>
/s:DataGrid>

MXML頁(yè)面
復(fù)制代碼 代碼如下:

?xml version="1.0" encoding="utf-8"?>
s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
fx:Declarations>
!-- 將非可視元素(例如服務(wù)、值對(duì)象)放在此處 -->
/fx:Declarations>
fx:Script>
![CDATA[

//----------------------------------------------------------------------------------------------------------

override public function prepare(hasBeenRecycled:Boolean):void
{
super.prepare( hasBeenRecycled );

// We make the radio button mimic the selection status of the whole row.
const selected_items: Vector.Object> = grid.dataGrid.selectedItems;

if( null == selected_items )
{
radio_button.selected = false;
return;
}

if( -1 != selected_items.indexOf( data ) )
radio_button.selected = true;
else
radio_button.selected = false;
}

//----------------------------------------------------------------------------------------------------------

]]>
/fx:Script>

!--The radio button is only a visual indicator for whether the row is selected or not.
The "selected" property of the radio_button will be controlled by the "prepare" function.
The radio_button should not be allowed any user interaction. Hence disabling it.-->
s:RadioButton id="radio_button"
label=""
enabled="false"

horizontalCenter="0" verticalCenter="0" />

/s:GridItemRenderer>
您可能感興趣的文章:
  • 在GridView中LinkButton的屬性的應(yīng)用(如何不用選中就刪除這一行)
  • 學(xué)習(xí)ExtJS(二) Button常用方法
  • aspxgridview CustomButtonCallback 不支持彈出消息提示解決方法
  • gridview中實(shí)現(xiàn)radiobutton的單選示例
  • 獲取Gridview中ButtonField的text屬性
  • gridview的buttonfield獲取該行的索引值(實(shí)例講解)
  • EXT中單擊button按鈕grid添加一行(光標(biāo)位置可設(shè)置)的實(shí)例代碼

標(biāo)簽:欽州 海西 攀枝花 仙桃 滄州 佛山 泰州 呂梁

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Flex4 DataGrid中如何嵌入RadioButton》,本文關(guān)鍵詞  Flex4,DataGrid,中,如何,嵌入,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Flex4 DataGrid中如何嵌入RadioButton》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于Flex4 DataGrid中如何嵌入RadioButton的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 秦皇岛市| 永登县| 赣州市| 从江县| 西盟| 桂阳县| 民乐县| 湾仔区| 西吉县| 祁阳县| 江达县| 得荣县| 云安县| 汤阴县| 娄烦县| 榆树市| 巨野县| 财经| 哈巴河县| 阆中市| 巫溪县| 三亚市| 扶绥县| 景德镇市| 新津县| 甘德县| 乡宁县| 北辰区| 蒙山县| 京山县| 太白县| 安溪县| 扎赉特旗| 叙永县| 镇巴县| 泌阳县| 荔浦县| 文水县| 贞丰县| 辰溪县| 尼勒克县|