
<?xml version="1.0" encoding="utf-8"?>
<SimpleControl name="gridPanel" descriptors="xworker.http.controls.SimpleControl" id="'gridPanel'">
    <view>
        <otherHeads><![CDATA[<meta http-equiv="content-type" content="text/html; charset=utf-8">
<LINK REL ="stylesheet" TYPE="text/css" HREF="fckeditor/2_6beta1/editor/css/fck_editorarea.css" TITLE="Style"/>
<script type="text/javascript" src="js/xworker/InnerBrowserUtil.js"></script>]]></otherHeads>
        <ExtJs>
            <Viewport name="viewport" varname="viewport" useChildExtThing="false" forceLayout="true" layout="'fit'" id="'viewport'" renderTo="document.body">
                <items>
                    <DataObjectGridPanel name="gridPanel" _xmeta_id_="_gridPanel_" dataObject="xworker.example.app.dataobject.ProvinceDataObject" useChildExtThing="false" title="'表格'" id="'gridPanel'">
                        <buttons>
                            <Button name="addButton" text="'添加'" useChildExtThing="false">
                                <handler useChildsCode="true" useChildExtThing="false">
                                    <GridInsertRecord descriptors="xworker.app.view.extjs.widgets.grid.DataObjectGridFunctions/@GridInsertRecord" gridId="'gridPanel'" insertType="blank"></GridInsertRecord>
                                </handler>
                            </Button>
                            <Button name="deleteButton" text="'删除'" useChildExtThing="false">
                                <handler useChildsCode="true" useChildExtThing="false">
                                    <GridDeleteRecords descriptors="xworker.app.view.extjs.widgets.grid.DataObjectGridFunctions/@GridDeleteRecords" gridName="'gridPanel'" title="'删除记录'" message="'确定要删除指定的记录么?'"></GridDeleteRecords>
                                </handler>
                            </Button>
                            <Button name="refreshButton" text="'刷新'" useChildExtThing="false">
                                <handler useChildsCode="true" useChildExtThing="false">
                                    <GridReloadRecords descriptors="xworker.app.view.extjs.widgets.grid.DataObjectGridFunctions/@GridReloadRecods" gridName="'gridPanel'"></GridReloadRecords>
                                </handler>
                            </Button>
                        </buttons>
                    </DataObjectGridPanel>
                </items>
            </Viewport>
        </ExtJs>
    </view>
    <result name="success" value="xworker.example.web.extjs.grid.TestGrid/@view"></result>
</SimpleControl> 
       
Copyright © 2007-2014 XWorker.org 版权所有