• NorthSJ项目零碎知识点


    1 div显示纵向滚动条:

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

    2 FineUI的控件Grid中的属性( AnchorValue="100% -70px") 表示100%占满外层div,-70是除去Top部的高度为70px的表单:(外层是个Panel面板,即div)

     <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,

    所以不能使用:

    btnClose.OnClientClick=window1.GetHideReference();
    protected void btnClose_Click(object sender,EventArg e)
    
    {
    
      window1.Hidden=true;
    
    }

    只能使用:

     public AlarmsEdit()
            {
                this.Load += new EventHandler(AlarmsEdit_Load);
            }
    
            protected void AlarmsEdit_Load(object sender, EventArgs e)
            {
                if (!IsPostBack)
                {
                    btnClose.OnClientClick = FineUI.ActiveWindow.GetHideReference();
                }
            }
  • 相关阅读:
    小程序云开发(一)
    原来你是这样的"layui"啊
    记个笔记(项目中遇到的关于input的一些操作)
    vue的学习之路 vue-cli与axios
    小程序 上传图片
    文字滚动
    css 隐藏滚动条
    linux基础
    接口测试
    整理python循环,列表,字典笔记
  • 原文地址:https://www.cnblogs.com/adolphyang/p/5250531.html
Copyright © 2020-2023  润新知