/// <summary> /// Determines the position of the pager in the grid. By default the pager element /// when created is divided in 3 parts (one part for pager, one part for navigator /// buttons and one part for record information) (default: center) /// </summary> /// <param name="pagerPos">Position of pager</param> public Grid setPagerPos(PagerPos pagerPos) { this._pagerPos = pagerPos; return this; }
/// <summary> /// Determines the position of the pager in the grid. By default the pager element /// when created is divided in 3 parts (one part for pager, one part for navigator /// buttons and one part for record information) (default: center) /// </summary> /// <param name="pagerPos">Position of pager</param> public Grid SetPagerPos(PagerPos pagerPos) { this.pagerPos = pagerPos; return this; }
/// <summary> /// 设置翻页用的导航栏 /// </summary> /// <param name="page">设置初始页码,默认值:1</param> /// <param name="rowNum">设置在grid上显示记录条数,这个参数是要被传递到后台,默认20</param> /// <param name="rowList">设置分页行数下拉选择框数据源,用来改变显示记录数,当选择时会覆盖rowNum参数传递到后台</param> /// <param name="pager">为 true 启用底部导航栏</param> /// <param name="topPager">为 true 启用顶部导航栏</param> /// <param name="pgButtons">为 true 显示翻页按钮</param> /// <param name="pgInput">为 true 显示翻页输入框</param> /// <param name="viewrecords">为 true 显示记录数信息</param> /// <param name="pagerPos">设置导航内容所在位置</param> /// <param name="recordPos">设置记录信息的位置</param> /// <param name="pgText">设置当前页信息,如: "Page {0} of {1}"</param> /// <param name="recordText">显示记录数信息。{0} 为记录数开始,{1}为记录数结束。viewrecords为ture时才能起效,且总记录数大于0时才会显示此信息</param> /// <returns></returns> public Grid SetPager( int page = 1, int rowNum = 20, int[] rowList = null, bool pager = true, bool topPager = false, bool pgButtons = true, bool pgInput = true, bool viewrecords = true, PagerPos pagerPos = PagerPos.Center, RecordPos recordPos = RecordPos.Right, string pgText = null, string recordText = null) { _page = page; _rowNum = rowNum; _rowList = rowList; _pager = pager; _topPager = topPager; _pgButtons = pgButtons; _pgInput = pgInput; _viewRecords = viewrecords; _pagerPos = pagerPos; _recordPos = recordPos; _pgText = pgText; _recordText = recordText; return this; }