Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Porkopek
    @porkopek
    Like, why do you need the Serverdata Param?
    is not enough with Items?
    and you get the items when the search changes?
    Haytam Zanid
    @zHaytam
    I assume Serverdata is the async function that gets the items?
    I don't know MudTable well
    Porkopek
    @porkopek
    yeah, but I think that to get the items is responsability of the user of the table
    Haytam Zanid
    @zHaytam
    Not unless it blows up their browser haha
    Tables can get very large very quickly, you can't load all of that into memory
    That's why Server Side Pagination exists
    Porkopek
    @porkopek
    no, of course, just the paginated size
    you do db.Take(10)
    Haytam Zanid
    @zHaytam
    Well that's what ServerData is for no?
    Except it's general so that you can use it however you want, which is nice
    Porkopek
    @porkopek
    but why do you even need it? You get the data when the search term changes
    Haytam Zanid
    @zHaytam
    Imagine having a Blazor WASM app + A backend API with a paginated endpoint
    With MudTable and Items, how do you use it
    Porkopek
    @porkopek
    that's my use case
    I do call the api myself
    my paginated API
    Haytam Zanid
    @zHaytam
    And set Items ?
    Porkopek
    @porkopek
    yes
    onInitialized
    and on change
    Haytam Zanid
    @zHaytam
    Is there an event in MudTable for page change?
    Porkopek
    @porkopek
    no, I just have a search box under each header
    when the search box changes
    Haytam Zanid
    @zHaytam
    Oh, right
    Well it's more obvious in these scenarios
    Pagination/Filtering, it's better to have the logic in one place (ServerData) rather than you hooking up into events and calling the API etc
    It's just convenient
    Porkopek
    @porkopek
    but pagination logic is in the server
    I just know what page I want
    Haytam Zanid
    @zHaytam
    By logic I mean the API call and which page to look for etc
    Logic is prob a bad name
    Porkopek
    @porkopek
    For me, I see there are too many options doing the same thing
    I think Blazor lacks the perspective that what is front-end
    not Blazor
    Blazor users
    because everybody codes in back-end too
    A front-end framework just have to provide callbacks, endpoints
    Ricardo Valero de la Rosa
    @RicardoValero95
    I got stuck with the sorting of MudTable when I found out it doesn't support multiple columns.
    I have the searchboxes under the headers, they don't look great but I'm getting there.
    I will try to use MudSimpleTable and create my own pagination and sorting components. Thanks.
    Porkopek
    @porkopek
    We should publish an more elaborated example of MudSimpleTable
    I'll make one when I have more time
    On another level, today somebody shared this on Twitter, that I found great
    nice CSS gradients
    Dominik van Megchelen
    @relentless92_gitlab
    so how are we supposed to position a FAB button to the bottom right corner of a page?
    Porkopek
    @porkopek
    make it Style="position:fixed;bottom:0;right:0;"
    Dominik van Megchelen
    @relentless92_gitlab
    ah, fixed it was. i tried absolute, that didnt work. thank you!
    Porkopek
    @porkopek
    position can be tricky