Skip to content
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

[Bug Report]: 使用Data tables(数据表格)设置ItemsPerPage感觉不对 #2175

Open
daipeng0809 opened this issue Sep 28, 2024 · 2 comments
Labels
component/DataTable status/resolved The issue has been fixed status/stale type/question Further information is requested

Comments

@daipeng0809
Copy link

Masa.Blazor version

1.7.3

Describe the bug

image image

默认ItemsPerPage是5,翻页这里是5,10,15没有问题。
但当我把ItemsPerPage改成13以后,翻页这里还是5,10,15我觉得不对,他应该变成26,39,42这样翻倍呀。

image image image

当我点击5以后,页面就变成了5条,回不到我设置的13条了。

还有一个问题,网站介绍里面是中文。

image

而使用组件的时候变成英文了,还是我没找到设置的地方啊?

image

Expected Behavior

No response

Steps To Reproduce

No response

Reproduction code

No response

.NET version

No response

What browsers are you seeing the problem on?

No response

Additional context

No response

@capdiem
Copy link
Contributor

capdiem commented Sep 28, 2024

@daipeng0809 默认可选 5,10,15,-1,你需要传这里面的数字之一。你可通过 FooterProps="p => p.ItemsPerPageOptions = new List<OneOf<int, DataItemsPerPageOption>>(){5, 10, 15, -1} 修改可选值。

@capdiem capdiem added type/question Further information is requested status/resolved The issue has been fixed component/DataTable labels Sep 28, 2024
Copy link

github-actions bot commented Oct 3, 2024

This issue is stale because it has been open for 4 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/DataTable status/resolved The issue has been fixed status/stale type/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants