FineUI 官方论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

本论坛已关闭(禁止注册、发帖和回复)
请移步 三石和他的朋友们

FineUI首页 WebForms - MVC & Core - JavaScript 常见问题 - QQ群 - 十周年征文活动

FineUI(开源版) 下载源代码 - 下载空项目 - 获取ExtJS - 文档 在线示例 - 版本更新 - 捐赠作者 - 教程

升级到 ASP.NET Core 3.1,快、快、快! 全新ASP.NET Core,比WebForms还简单! 欢迎加入【三石和他的朋友们】(基础版下载)

搜索
查看: 2660|回复: 2

f:Grid如何实现分页功能?

[复制链接]
发表于 2017-6-13 11:45:51 | 显示全部楼层 |阅读模式
f:Grid如何实现分页功能?
<f:Grid ID="Grid1" IsDatabasePaging="true" ShowPagingMessage="true" AllowPaging="true" AllowColumnLocking="true" runat="server" Title="Grid" ShowBorder="false" ShowHeader="false" EnableTextSelection="true" PageSize="15" DataKeyNames="id">
                <Columns>
                    <f:BoundField DataField="id" DataFormatString="{0}" HeaderText="ID" />
                    <f:BoundField DataField="name" DataFormatString="{0}" HeaderText="频道名称" />
                    <f:BoundField DataField="sort" DataFormatString="{0}" HeaderText="排序" />
                    <f:TemplateField HeaderText="是否禁用频道" Width="120px">
                       <ItemTemplate>            
                            <%# Convert.ToBoolean(Eval("status")) == false ? "否" : "是"%>
                        </ItemTemplate>
                    </f:TemplateField>
                    <f:BoundField DataField="createDateTime" DataFormatString="{0}" HeaderText="添加时间" Width="200px" />
                    <f:BoundField DataField="updateDateTime" DataFormatString="{0}" HeaderText="修改时间" Width="200px" />
                    <f:WindowField TextAlign="Center" Width="130px" WindowID="Window1" Icon="MonitorEdit" Text="编辑频道" HeaderText="编辑频道" ToolTip="编辑频道" DataIFrameUrlFields="id" DataIFrameUrlFormatString="ChannelsAdd.aspx?id={0}&action=ChannelsEdit" Title="编辑频道" />
                    <%--<finkButtonField ConfirmText="确定删除吗?" HeaderText="删除" Icon="Delete" CommandName="DelChannels" Width="50px" />--%>
                   <%-- <f:TemplateField ExpandUnusedSpace="true">
                        <ItemTemplate>
                        </ItemTemplate>
                    </f:TemplateField>--%>
                </Columns>
            </f:Grid>

发表于 2017-6-13 16:21:50 | 显示全部楼层
官网不是有例子吗。推荐用数据库分页。
发表于 2017-6-13 16:22:11 | 显示全部楼层
官网不是有例子吗。推荐用数据库分页。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|FineUI 官方论坛 ( 皖ICP备2021006167号-1 )

GMT+8, 2024-3-29 19:05 , Processed in 0.045964 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表