Confused over searchPane updates when text searching

Confused over searchPane updates when text searching

robsimpsonrobsimpson Posts: 36Questions: 8Answers: 1

I'm confused about differences in the searchPane examples.

-- Simple SP, doesn't use text search
In https://datatables.net/extensions/searchpanes/examples/initialisation/simple.html, the simple search pane doesn't react to a global search - ie.Search: "ramos" will filter the table to one row, but the SP's won't change.

-- Cascade panes, does use text search
The same search term as above will revise the data table

In the Editor versions of the above, neither respond to text searches

https://editor.datatables.net/examples/extensions/searchPanes.html
https://editor.datatables.net/examples/extensions/searchPanesCascade.html

I can't see anything in the configuration that explains this.

Many thanks,

Rob

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    Hah - Cascade is the feature that just keeps on giving! Agreed, there is a discrepancy there in the SP code. I don't believe that cascade should be filtering like it does based on the global search.

    I've bugged it up to look at for the next release.

    Allan

  • robsimpsonrobsimpson Posts: 36Questions: 8Answers: 1

    Why do you think it shouldn't? Why would the panes not reflect the data in the table at any moment?

    My user is typically searching on text criteria (column searches) and using the panes both as information (seeing how many eg. Surveyors there are in a region), and to further drill down on other criteria. It seems odd that the searchPanes are in world of their own, with their own idea of the data at hand.

    I've built my own server-side to enable this, but am curious as to the philosophy behind your decision.

    Thanks a lot,

    Rob

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    I'd been thinking that way since three out of the four cases operated that way. Perhaps it should be something that has an option to be enabled. I'm having lunch with Sandy (who wrote SearchPanes) today and I'll ask him if he can recall his thinking at the time.

    Allan

Sign In or Register to comment.