本帖最后由 dexteryao 于 2016-3-31 12:07 编辑
您好,在页面中加入这样的代码,不知道是不是您期望的结果
- <script>
- $(function () {
- var spread1 = document.getElementById("<%=FpSpread1.ClientID %>");
- spread1.addEventListener("CallBackStopped", CallBackStopped, false);
- CallBackStopped();
- function CallBackStopped(event) {
- var spread1 = document.getElementById("<%=FpSpread1.ClientID %>");
- var pager = document.getElementById("<%=FpSpread1.ClientID %>_pager1");
- var curretnPage = spread1.GetCurrentPageIndex();
- var totalRow = spread1.GetPageCount();
- var pageSize = 20;
- var totalCount = spread1.GetRowCount
- var first = (curretnPage) * pageSize
- var last = (first + pageSize) > totalCount ? totalCount : first + pageSize;
- $(pager).append("<label>" + (first + 1) + "-" + last + "件表示/" + totalRow + "</label>")
- }
- })
- <script>
复制代码 |