FineUI 官方论坛
标题:
NumberBox在grid控件中出错。
[打印本页]
作者:
hton123
时间:
2013-11-18 21:24
标题:
NumberBox在grid控件中出错。
grid控件包含<ext:NumberBox>控件。绑定数据时,能够显示出NumberBox文本框,但是我删除一行后,NumberBox文本框消失了,还有,NumberBox在 grid控件中,除了输入数字外,是可以输入其他字符的,这不符合NumberBox 本意。如果换成asp:TextBox就没问题了
[attach]3675[/attach]
[attach]3676[/attach]
<ext:Grid runat="server" ID="gdBookIndex" Title="图书列表" Height="352px" EnableRowNumber="true" ForceFitAllTime="true">
<Toolbars>
<ext:Toolbar runat="server" ID="tbr">
<Items>
<ext:ToolbarText runat="server" ID="tbt" Text="图书编号"></ext:ToolbarText>
<ext:TextBox runat="server" ID="tbx_bookID"></ext:TextBox>
<ext:ToolbarSeparator runat="server" ID="tbsp"></ext:ToolbarSeparator>
<ext:Button runat="server" ID="btnAddBook" Text="添加"></ext:Button>
</Items>
</ext:Toolbar>
</Toolbars>
<Columns>
<ext:BoundField DataField="BookID" HeaderText="图书编号"></ext:BoundField>
<ext:BoundField DataField="BookName" HeaderText="作者"></ext:BoundField>
<ext:BoundField DataField="BookAuthor" HeaderText="作者"></ext:BoundField>
<ext:BoundField DataField="BookPress" HeaderText="出版社"></ext:BoundField>
<ext:BoundField DataField="BookBookCategory.BcDays" HeaderText="t"></ext:BoundField>
<ext:TemplateField HeaderText="天数">
<ItemTemplate>
<ext:NumberBox runat="server" ID="nb_days" Width="50" Text='<%#Eval("BookBookCategory.BcDays") %>'></ext:NumberBox>
</ItemTemplate>
</ext:TemplateField>
<ext
inkButtonField Text="删除" CommandName="delete"></ext
inkButtonField>
</Columns>
</ext:Grid>
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4