Ticket Q458759
Visible to All Users

ASPxGridView- How to remove paging when columns are grouped

created 12 years ago

How to Remove Paging During Grouping of Columns.Presently it shows Paging During Both Condition i.e at Grouping and No grouping.

I wanna remove Paging as we Do grouping i.e Drag columns for grouping and Paging will be there as we remove the gropuing.

Thanks

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

Hello Neeraj,
Handle the ASPxCallbackPanel.BeforeGetCallbackResult event and use the following code to implement your scenario:

C#
protected void gridView_BeforeGetCallbackResult(object sender, EventArgs e) { if(gridView.GetGroupedColumns().Count > 0) gridView.SettingsPager.Mode = DevExpress.Web.ASPxGridView.GridViewPagerMode.ShowAllRecords; else gridView.SettingsPager.Mode = DevExpress.Web.ASPxGridView.GridViewPagerMode.ShowPager; }

Attached is the sample project. Please let me know if you need further assistance.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.