Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Mladen Macanović
    @stsrki
    You will need to make use of TextExpression on a TextEdit
    Also, wrap TextEdit with Validation component
    Peter Morris
    @mrpmorris
    Installing 1.1 now
    So how do I change my EditTemplate?
                    <EditTemplate>
                        <Validation>
                            <TextEdit Text=@((string)context.CellValue) TextChanged=@(x => context.CellValue = x)>
                                <Feedback><Blazorise.ValidationError /></Feedback>
                            </TextEdit>
                        </Validation>
                    </EditTemplate>
    Mladen Macanović
    @stsrki
    Well, it should be something like this
    <EditTemplate>
    <Validation>
        <TextEdit Text=@((string)context.CellValue) TextChanged=@(x => context.CellValue = x) TextExpression="@(()=>context.Item.FirstName)">
            <Feedback><Blazorise.ValidationError /></Feedback>
        </TextEdit>
    </Validation>
    </EditTemplate>
    But I see a problem
    TextExpression="@(()=>context.Item.FirstName)" will target the wrong model
    Internally we have a model that is used just for data-annotations
    but it is now accessible from outside
    your best option is to use <Validation Validator="ValidationRule.IsNotEmpty">
    Peter Morris
    @mrpmorris
    The validations are in the contracts, I don't want to repeat them
    So it can't be done?
    Mladen Macanović
    @stsrki
    No, unfortunately
    We will have to expose the DataGrid.ValidationItem and then it will be possible
    Peter Morris
    @mrpmorris
    Damn it
    Mladen Macanović
    @stsrki
    I will discuss with David to see if it's safe
    Peter Morris
    @mrpmorris
    :thumbsup:
    Mladen Macanović
    @stsrki
    @mrpmorris I had a conversation with David to see what we, might do and we could create a new API that would make DataGrid easier
    Peter Morris
    @mrpmorris
    Looks like a good idea. I need to demo this today though, so I'm downloading another lib
    Mladen Macanović
    @stsrki
    We're loosing you 😭
    Peter Morris
    @mrpmorris
    Less work for you :)
    Mladen Macanović
    @stsrki
    not so bad after all :D
    Peter Morris
    @mrpmorris
    :D
    AlbertoPa @AlbertoPa upgrades to 1.1
    Alberto Passalacqua
    @AlbertoPa
    all smooth, just had to rename MessageAlert :-)
    Mladen Macanović
    @stsrki
    Nice 😀
    Alberto Passalacqua
    @AlbertoPa
    :-)
    on the other hand STJ is still giving me headaches, but it wouldn't be STJ if it wasn't LOL
    Mladen Macanović
    @stsrki
    STJ??
    Stefan Ossendorf
    @stefan.ossendorf:matrix.org
    [m]
    System.Text.Json
    Alberto Passalacqua
    @AlbertoPa
    that :-)
    a solution in search of a problem, practically
    Mladen Macanović
    @stsrki
    ahhh
    well, the purpose of STJ is to give us problems 🤣
    Alberto Passalacqua
    @AlbertoPa
    yep, no idea how it made it into production code
    Stefan Ossendorf
    @stefan.ossendorf:matrix.org
    [m]
    It's fast and more efficient than NSJ!
    Alberto Passalacqua
    @AlbertoPa
    it's broken beyond acceptable IMHO (and one of the main reasons I avoided using asp.net core for our project)
    Alberto Passalacqua
    @AlbertoPa
    How do you enable the close button in an alert?
    It shows, but can't close (I enabled Dismisable too)
    Alberto Passalacqua
    @AlbertoPa
    hmm this seems a change/regression in 1.1... the close button on alerts works in 1.0.6 :-?
    Mladen Macanović
    @stsrki
    There was a bug on CloseButton that is fixed. Today we're rolling an update
    Alberto Passalacqua
    @AlbertoPa
    You guys are fast 👍
    Thanks
    Alberto Passalacqua
    @AlbertoPa
    all working with 1.1.1 :-)
    Mladen Macanović
    @stsrki
    💪
    Joerg Krause
    @joergkrause
    Hi. I'm using Blazorise.DataGrid and have an issue with row collapsing. If I click a row I can open/close detailtemplate. No I want to close all others (currently open) if I click a row. I can't find neither a setting nor an event that could support this. Alternatively, could be an API there for doing a collapse all/expand all by code? Thanks for any hints.
    Joerg Krause
    @joergkrause
    Okay, seems that I figured it out. Not sure if it's the best way. However, in the DetailRowTrigger event I can enforce single behavior: DetailRowTrigger="(args) => args.Single = true".
    Mladen Macanović
    @stsrki
    Hey, @joergkrause sorry for not responding sooner. Most people have moved to Blazorise discord from here.
    Regarding your problem, the args.Single = true is the right way to make it.