Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
WebDataGrid Filtering/paging issue
posted

Using a WebDataGrid and ExcelStyle filtering... version 15.2

I am having an issue between filtering and paging.  I have a couple of scenarios that should work but I can't get them to work with the same configuration.

The issue when my WDG is configured as such....

enableviewstate=true
enabledataviewstate=true
enableajax=false
enableajaxviewstate=false

Working with a grid that's 3 pages...

I can filter to a 2 page dataset... paging works, clear filter works.

When I filter to a 1 page dataset, there is no paging (correct), but when I clear filter, it returns to the full dataset, but the paging does not return (should be 3 pages as it is on page load).

So I reconfigure my WDG settings as such...

enableviewstate=false
enabledataviewstate=false
enableajax=true
enableajaxviewstate=true

Using the same 3 page grid/dataset...

I filter to the 1 page dataset

No paging (correct) and when I clear filters it goes back to the full dataset (3 pages worth) and the paging buttons return.

When I filter to the 2 page dataset..

Filter works,  but clicking on page 2 restores the grid to the full dataset (3 pages worth) instead of page 2 of the filtered dataset.

I need both of these scenarios to work but I can't figure out the WDG configuration required.

Ideas?

Parents
  • 16310
    Offline posted

    Hi Greg,

    Thank you for the information shared, though it is not enough to make assumptions on the issue. An important role in the grid behavior would be how you bind the grid - keeping enableDataViewState to false requires that you bind the grid on each postback - please make sure you follow this.

    Furthermore, setting enableViewState to true is not a recommended approach as this feature is known to result in misbehaviors in many situations. A lot of bugs have been fixed though, and what you experience in 15.2 is pretty probable to be working fine in 18.1.

    ExcelStyleFiltering in combination with enableDataViewState to true is also a combination that is not recommended. We always recommend users to turn off those features or use them only if they are sure what they want to achieve.

    I could be able to help you  if you provide me with a sample that I can run on my side and investigate. If there is a bad configuration of the grid I would be able to help you with that, but if it is a bug in our code that leads to those results, then you would need to upgrade to a newer version of our product as 15.2 support has expired.

    Looking forward to hearing from you.

Reply Children