-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]-[800]:Server-side filtering for Tables #10486
Comments
@lublak sort is already available. You can bind {{Table1.sortOrder.column}}. Server-side filtering is still missing today |
@lublak this might be possible today even on the server side using the onSort event, which can be used to call an api, We also have an internal property {{Table1.sortOrder}} which gives you the column name and the order in which the user is asking you to sort, this is set to null when no column is set on sort. @Nikhil-Nandagopal do you think this solves the problem? This is not well documented though. cc @Pranay105 @dilippitchika |
@somangshu it does but the same needs to be possible for filters as well |
@Nikhil-Nandagopal agreed, we have an open issue for that, not yet prioritised, we might be able to get it up once we have the v2 for table. Though in no way this is dependent on the v2 implementation. |
@Tooluloope I remember you working on the earlier feature set, Any comments on this, What is the effort required? Did we push this back for a reason? |
Yes for sorting there is it available (but are we missing the serverside switch like the serverside pagination to disable all client side searching?) |
Hey @lublak could you expand on the switch part? You have events called onSearchTextChanged and onSort. If you bind a query to it, it will be triggered with the events making it server side, if you don't it will be done on the client side. Is this part of the table events unclear? Agreed on the filtering part. |
@dilippitchika Or "Enable client side sort" |
Hey @lublak the reason we have "Server side Pagination" as a switch is because it needs extra properties for it to be configured and used. For server side sort, we don't have a switch because once you configure the onSort action to bind to a query it is server side sort. You don't need an extra switch for it. When there is no query bound to onSort it uses client side sort. The switch is only needed for server side if there are some extra properties which are needed to be filled. |
@dilippitchika and what about "Enable client side search"? Why is this needed? |
@lublak that is used to disable the client-side search when server-side search is applied way so that the client-side does not override the server-side search |
Today, we already expose all the filter properties using Table1.filters, we need to add a new onFilterUpdate action to support this. |
@Nikhil-Nandagopal @Tooluloope thanks for the answer :) i understood now. |
@dilippitchika in case there is enough clerity here with what needs to be implemented, Please move this to the backlog and unassign yourself |
This is a deal breaker for us, unfortunately. Any ideas when it might come around? |
Hey @acron0, The dependency on this have been cleared, but we still havent prioritized this. While I talk about this internally, can you explain your use case, Maybe we can suggest some workaround. |
|
Hey @m1ker1n, today we expose a field called as |
How should I observe filters changes to run new query with new parameters? |
@m1ker1n apologies for the confusion, discussed this internally and found out that we need an action like onFilterUpdate on the table widget to complete this loop. This will not work as expected otherwise. |
@somangshu any upcoming news about the issue in near future |
@eyyupguner can you please help me understand what you are looking for. |
@somangshu i have implemented the same logic with input boxes for my all columns but its hard to implement if you have lots of tables in your project and hard to manage their names etc. |
We created button "apply filters" which takes these filters and handles them. So user must click one more time after he chose them in popup to receive filtrated data from server |
@rahulbarwal @carinanfonseca Do we have an ETA for this? |
Hey @rahulbarwal @carinanfonseca , we'd very much like to utilize your built-in filters and connect them to our APIs for backend functionality - developing our own filters with "select" widgets creates a very high complexity and a UI which is not clean. It adds an additional level of maintenance and a complex UX. Also - this is for the most simple "AND" use case with exact match - for "contains" and "OR" conditions we'll need an even more complicated UI. Thanks! |
Hello @yonatang-cyera! I would love to have a short call with you about this topic to better understand how critical this topic is for you and to discuss some key points. Is this possible? If yes, feel free to book a time that works best for you here. |
Is there an existing issue for this?
Summary
Binding of the data from the Filter fields to the data sources.
Why should this be worked on?
Currently, the filtering is client-side.
Especially with large amounts of data, I use serverside pageination.
But now it would be practical to integrate the data in sql as with serverside pagination. Table.filterJson next to Table.search and Table.pageNo would be really nice.
Front conversations
The text was updated successfully, but these errors were encountered: