Datagrid : allow default summary text to be hidden #1670
Closed
MBNSoftware
started this conversation in
Ideas
Replies: 2 comments
-
Tha Datagrid's design is to always have the summary and the pagination components. The defaults are there to make it easier to have something that 'just works'. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok. I understand. Thank you ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
If using Paginator on a data grid, it always shows both summary and pagination informations, even if one of them is not provided.
This is because of the code in FluentPaginator.razor that is forcing a default value if the template is null (not provided).
Excerpt for the SummaryTemplate :
To me, a simple "if" statement would be enough : if you provide the template then it is displayed otherwise ... there is no otherwise :)
By the way, the default text being hardcoded in english does not seem to be a good idea either, to me.
One side effect of removing the default text for the SummaryTemplate is that the PaginationTemplate is now aligned on the left.
While understandable (and good for my own needs), it may not be desirable for everybody.
I don't know if a single "if" statement is the best way or if a parameter would be better. Sure enough, the if statement would be the easiest one to implement.
What do you think ?
A workaround (dirty workaround) is currently to provide a space in the template. This way, it is not null and may not be noticeable in the display.
Regards,
Christophe
Beta Was this translation helpful? Give feedback.
All reactions