Default rows per page

image

How can I change the default of rows per page? To lets say 100?

Thanks for sharing your feature request :slight_smile:

Changing the default is currently not possible on any page.

Can you share on which page this is and why you would like to have the number increased?

For some applications, such as the CPT, the default number of entities is quite high, and the limit of 10 is not adequate. We need to enhance user experience and reduce confusion by increasing this limit to around 50. However, since this requirement is specific to only certain applications, implementing a default setting that allows for this adjustment would be the most effective approach.

Do i understand it correctly that this is in the entity overview page? like below as example

I understand your proposal to make a developer/admin defined parameter, but am wondering if it wouldn’t be nicer to have this user defined? i think many products persists the users latest choise and re-apply this when you return

We can also look into increasing the default for all applications to 50, since the usecase for a low number of entities still remains similar?

yeah that would work

Nice suggestion!

We would also appreciate it if the default could be changed or at lease the users latest choice is remembered and re-applied when the user returns; Especially on child entities / childEntityManager. It will improve the user experience.

1 Like

This is also of interest to us (exact same scenario). It would be quite welcomed by our users. Except the pages would not be CPT but the different entity pages within the tree structure.

1 Like

@matthijs Would you have any update on this feature request ?

It’s of great interest to us and our users.

In addition, would this also cover the behavior of the ChildEntityManager ?

@kassi would it work for you as well when we update the change value to 50?

Disadvantage could be that loading takes a bit more time and that when using the childentitymanager the table takes more space in the parametrization.

@StijnJansen 50 works, thank you !

From the feedback received and our collected data, there is no clear difference in our use cases between 25 and 50, and it’s definitely an improvement from 10.

@Johan_Tuls @kassi @Sina @pierreb @sams

After further exploration we came to the conclusion that we don’t want to change the global default since it can negatively influence the UX (responsiveness and size of the tables) on existing apps.

Our proposed solution is to be able to set this per entity type, as a developer in the app code. Probably like this:

import viktor as vkt


class Controller(vkt.Controller):
    label = 'Overview'
    children = ['MyEntityType']
    default_rows_per_page = 50

With the constraint that you can choose between 10, 25, 50 or 100.

Keen to hear if this solution would work for you!

yes that would be great.
It was never about the default but the customizability.

Sounds great!

I just wonder where does this take effect? In the entity type itself? Or in a parent entity, like how this entity type is shown in a parent entity?

This also sounds great to us ! Perfect !