ASPxGridView Pager disappears
Posted
by Jo Asakura
on Stack Overflow
See other posts from Stack Overflow
or by Jo Asakura
Published on 2010-03-19T10:54:03Z
Indexed on
2010/03/22
8:41 UTC
Read the original article
Hit count: 923
Hello all,
I use the ASPxGridView with paging, pager settings is next:
<SettingsPager
Mode="ShowPager"
Position="Bottom"
Visible="true">
Also I have a CustomButtonInitialize event:
protected void gridViewInvoices_CustomButtonInitialize(object sender, ASPxGridViewCustomButtonEventArgs e)
{
if (!e.IsEditingRow)
{
Invoice invoice = (Invoice)gridViewInvoices.GetRow(e.VisibleIndex);
if (invoice != null)
{
if (e.ButtonID == "btnConfirmPayment")
{
e.Visible = invoice.PaymentConfirmedDate.HasValue ?
DefaultBoolean.False : DefaultBoolean.Default;
}
}
}
}
When I open the page with this grid the pager disappears but if I comment my CustomButtonInitialize event:
protected void gridViewInvoices_CustomButtonInitialize(object sender, ASPxGridViewCustomButtonEventArgs e)
{
/*if (!e.IsEditingRow)
{
Invoice invoice = (Invoice)gridViewInvoices.GetRow(e.VisibleIndex);
if (invoice != null)
{
if (e.ButtonID == "btnConfirmPayment")
{
e.Visible = invoice.PaymentConfirmedDate.HasValue ?
DefaultBoolean.False : DefaultBoolean.Default;
}
}
}*/
}
Pager appears again, how can I fix it and how is pager depend on this event (CustomButtonInitialize)?
Best regards, Alex.
© Stack Overflow or respective owner