I'm trying to add a label and checkbox after the Page Size drop down in the standard pager. However, when I do this:
The result is the controls above the whole pager.
protected
void
AssetGrid_OnItemEvent(
object
sender, GridItemEventArgs e)
{
if
(e.EventInfo
is
GridInitializePagerItem)
{
var showAllLabel =
new
Label {Text =
"Show All"
};
var showAllCheckBox =
new
CheckBox();
(e.Item
as
GridPagerItem).PagerContentCell.Controls.Add(showAllLabel);
(e.Item
as
GridPagerItem).PagerContentCell.Controls.Add(showAllCheckBox);
}
}
The result is the controls above the whole pager.