FineUI 官方论坛
标题:
【已解决】TypeError: gridSorter is undefined
[打印本页]
作者:
artfairy
时间:
2016-11-7 00:52
标题:
【已解决】TypeError: gridSorter is undefined
protected void ttbKey_Trigger2Click(object sender, EventArgs e)
{
ttbKey.ShowTrigger1 = true;
BindGrid();
}
======================
private void BindGrid()
{
// 1.排序字段,方向(升序,降序)
string sortField = Grid1.SortField;
string sortDirection = Grid1.SortDirection;
string strSortField = sortField + " " + sortDirection;
int PageIndex = Grid1.PageIndex;
int PageSize = Grid1.PageSize;
// 2.获取总记录数及分页数据
int TotalPage;
int TotalRecord;
DataTable table = GetDataTable(strSortField, PageSize, PageIndex, out TotalPage, out TotalRecord);
// 3.设置总项数(特别注意:数据库分页一定要设置总记录数RecordCount)
Grid1.RecordCount = TotalRecord;
// 4.绑定到Grid
Grid1.DataSource = table;
Grid1.DataBind();
}
作者:
sanshi
时间:
2016-11-7 10:14
应该是已修正问题,请先更新到 v4.2.4.1:
http://fineui.com/bbs/forum.php?mod=viewthread&tid=2123
作者:
artfairy
时间:
2016-11-7 14:24
的确如此,升级到v4.2.4.1,就可以了,非常感谢!
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4