FineUI 官方论坛
标题:
求助
[打印本页]
作者:
nature919
时间:
2018-4-18 15:00
标题:
求助
<f:GroupPanel ID="GroupPanel1" Layout="Column" Title="查询" runat="server" Width="800px">
<Items>
<f
anel ID="
anel2" Layout="HBox" ShowHeader="false" ShowBorder="false" runat="server" Width="800px">
<Items>
<f
ropDownList ID="ddlb_column" ShowLabel="true" AutoPostBack="true" runat="server" Label="列名" LabelAlign="Right" Width="160px" LabelWidth="50px" AutoSelectFirstItem="false" >
</f
ropDownList>
<f
ropDownList ID="ddlb_conditiom" runat="server" AutoPostBack="True" ShowLabel="true" Label="条件" LabelAlign="Right" Width="160px" LabelWidth="50px" AutoSelectFirstItem="false" >
</f
ropDownList>
<f:TextBox ID="tx_input" runat="server" Label="查询条件" LabelAlign="Right" Width="240px" LabelWidth="80px">
</f:TextBox>
<f:Button ID="tbn_Simple" runat="server" Text="简单查询" Icon="Find" Width="100px" Margin="5px" >
</f:Button>
<f:Button ID="tbn_Complex" runat="server" Text="复杂查询" Icon="Find" Width="100px" Margin="5px">
</f:Button>
</Items>
</f
anel>
</Items>
</f:GroupPanel>
<f:Grid ID="Grid_list" runat="server" Width="800px" EnableCheckBoxSelect="true" PageSize="10" Allowsorting="true"
Title="" AllowPaging="true" ShowHeader="false" IsDatabasePaging="true">
<Toolbars>
<f:Toolbar ID="Toolbar1" runat="server" >
<Items>
<f:Button ID="btnNew" Text="新增" Icon="Add" EnablePostBack="false" runat="server"></f:Button>
<f:Button ID="btnEdit" Text="编辑" Icon="
encil" EnablePostBack="false" runat="server" Hidden="false"></f:Button>
<f:Button ID="btnDelete" Text="删除" Icon="Delete" EnablePostBack="false" runat="server"></f:Button>
<f:Button ID="btnImport" runat="server" Text="导入数据" EnablePostBack="false" ></f:Button>
<f:Button ID="btnExport" runat="server" Text="导出数据" EnablePostBack="false" ></f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<
ageItems>
<f:ToolbarSeparator ID="Toolbar_page" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText runat="server" Text="每页记录数:">
</f:ToolbarText>
<f
ropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true">
<f
istItem Text="5" Value="5" />
<f
istItem Text="10" Value="10" />
<f
istItem Text="15" Value="15" />
<f
istItem Text="20" Value="20" />
</f
ropDownList>
</PageItems>
</f:Grid>
protected void btnNew_Click(object sender, EventArgs e)
{
btnNew.OnClientClick = Alert.GetShowInTopReference("改变了!");
}
前面简单查询和复杂查询按钮有用,但是后面的增加、删除、编辑、导入、导出五个按钮点击都没有反应,这是什么原因啊?求助大神们,多谢
作者:
zy32002
时间:
2018-4-18 19:27
本帖最后由 zy32002 于 2018-4-18 19:37 编辑
你要读懂你写的代码!!
btnNew.OnClientClick = Alert.GetShowInTopReference("改变了!");
这个代码意思,给btnNew增加一个js方法,注意是初始化,而不是执行js。
fineui执行js方法使用
PageContext
这个对象,具体查下fineui.com/api。
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4