NorthSJ項目零碎知識點

1 div顯示縱向滾動條:ide

<div style="overflow-y:auto;overflow-x:hidden;"></div>

2 FineUI的控件Grid中的屬性( AnchorValue="100% -70px") 表示100%佔滿外層div,-70是除去Top部的高度爲70px的表單:(外層是個Panel面板,即div)this

 <x:Form ID="Form2" runat="server" Height="70px" BodyPadding="5px" ShowHeader="false"
                LabelWidth="75px" ShowBorder="false" >
                <Rows>
                    <x:FormRow ID="FormRow2" runat="server" ColumnWidths="200px 200px ">
                        <Items>
                            <x:DropDownList runat="server" Label="客戶" ID="ddlCustomer" AutoPostBack="true" OnSelectedIndexChanged="ddlCustomer_SelectedIndexChanged" LabelWidth="40px" />
                            <x:DropDownList runat="server" Label="項目" ID="ddlProject"  LabelWidth="40px"  />
                        </Items>
                    </x:FormRow>
                    <x:FormRow ID="FormRow1" runat="server" ColumnWidths="200px 200px 200px">
                        <Items>
                            <x:TextBox runat="server" ID="txtName" Label="名稱" LabelWidth="40px" />
                            <x:DropDownList runat="server" Label="狀態" ID="ddlSiteStatus"  LabelWidth="40px"  />
                            <x:Button runat="server" ID="btnSearch" Text="搜索" Icon="SystemSearch" OnClick="btnSearch_Click" />
                        </Items>
                    </x:FormRow>
                </Rows>
            </x:Form>
            <x:Grid ID="Grid1" runat="server" AnchorValue="100% -70px" ShowBorder="true" ShowHeader="false"
                OnRowCommand="Grid1_RowCommand" EnableCheckBoxSelect="true" 
                DataKeyNames="ID" OnSort="Grid1_Sort"  AllowSorting="true" AllowPaging="true"
                IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange" Height="200px">
</x:Grid>

 3 使FineUI的編輯窗口關閉,可是該窗體是使用模板頁的窗體,找不到windowID,spa

因此不能使用:code

btnClose.OnClientClick=window1.GetHideReference();

 

protected void btnClose_Click(object sender,EventArg e)

{

  window1.Hidden=true;

}

 

只能使用:orm

 public AlarmsEdit()
        {
            this.Load += new EventHandler(AlarmsEdit_Load);
        }

        protected void AlarmsEdit_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                btnClose.OnClientClick = FineUI.ActiveWindow.GetHideReference();
            }
        }
相關文章
相關標籤/搜索