RenderTop
function Render()
Set the function that will render content of custom pager.
Show/Hide Code
<?php
class MyUniquePager extends GridCustomPager
{
function Render($info)
{
$html = "My custom pager, select to change page: ";
$html.="<select style='width:40px;' onchange='handle_pagechange(this)'>";
for($i=0;$i<$info["TotalPages"];$i++)
{
$html.="<option value='".($i+1)."' ".(($i==$info["PageIndex"])?"selected":"").">".($i+1)."</option>";
}
$html.="</select>";
return $html;
}
}
$grid->MasterTable->Pager = new MyUniquePager();
?>
...
<script type="text/javascript">
function handle_pagechange(_obj_select)
{
var page_index = _obj_select.options[_obj_select.selectedIndex].value;
grid_gopage(_obj_select,page_index-1);
}
</script>
Supported from version: 1.0.0.0