ASPxGridView 分页器消失
我将 ASPxGridView 与分页一起使用,分页器设置如下:
<SettingsPager
Mode="ShowPager"
Position="Bottom"
Visible="true">
我还有一个 CustomButtonInitialize 事件:
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;
}
}
}
}
当我使用此网格打开页面时,分页器消失,但如果我评论我的 CustomButtonInitialize 事件:
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;
}
}
}*/
}
分页器再次出现,我该如何修复它以及如何解决寻呼机依赖于此事件(CustomButtonInitialize)吗?
最好的问候,亚历克斯。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
乔,
也尝试检查一下:
如果这没有帮助,请联系我们的支持团队,他们可以帮助您解决问题:
http://www.devexpress.com/Support/Center/CreateIssue。 aspx?issuetype=问题
Jo,
Try also checking this:
If that doesn't help then please contact our support team and they can help you figure it out:
http://www.devexpress.com/Support/Center/CreateIssue.aspx?issuetype=Question