Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    John Bomhold
    @jbomhold3
    @JulianDev24_gitlab https://www.nuget.org/packages/BlazorStrap/5.0.105-Preview1 / https://blazorstrap.io/V5/content/tables data table has been added preview build because I had to make a few changes to other components
    ghardy00143
    @ghardy00143
    Still getting the issue when I move to the version 1.5.102-Preview2. It all seems to work fine if I use ShowEvent instead of ShownEvent. I will see if I can recreate then submit a ticket, but it might be something in the contents of the one tab causing the issue. I will try to recreate it for the issues page.
    JulianDev
    @JulianDev24

    @JulianDev24_gitlab https://www.nuget.org/packages/BlazorStrap/5.0.105-Preview1 / https://blazorstrap.io/V5/content/tables data table has been added preview build because I had to make a few changes to other components

    That looks great ...
    I think the Method for the DataSet might be a little bit to complex for newer Developers.
    It works with Reflections but its not the Best ways i think :D

    John Bomhold
    @jbomhold3
    The example is showing dynamic loading from a fake dataset. Standard loaded dataset would be far simpler to look at. And what that could look like with api is simply
    return= await Http.GetFromJsonAsync<Employee[]>($"http://fake.com/getEmployees?orderby={sortColumn}&desc={desc}page={page}&filterColumn={filterColumn}&q={filter}");
    John Bomhold
    @jbomhold3
    in fact your welcome to submit a PR the method allows the most flexibility for devs in my opinion. However, I have never been one to assume I have all the answers
    JulianDev
    @JulianDev24

    The example is showing dynamic loading from a fake dataset. Standard loaded dataset would be far simpler to look at. And what that could look like with api is simply
    return= await Http.GetFromJsonAsync<Employee[]>($"http://fake.com/getEmployees?orderby={sortColumn}&desc={desc}page={page}&filterColumn={filterColumn}&q={filter}");

    but then u have unlimited api requests if u dont use a cache in front of it...
    So a simpler Method is needed..
    I will thinker over one if i have more time :D

    John Bomhold
    @jbomhold3

    I am looking forward to seeing what you come up with. I will expand/explain my thought process a little bit here. So there is a better understanding of the overall objective.

    I provided a dumbed-down example of calling an API. You could easily cache calls in the method. Yes, some work is going to be required by the end programmer. Also, to be clear, it's not invoking the method each time it draws. API calls in the example would only happen on sort, filter, page change. The design goal is to empower them with total control over how the data comes in without assuming anything.

    What I don't want is for the user to have to do is hook Sort, Page, Filter events. Then have to reference BSDataTable to call a refresh on each event.

    JulianDev
    @JulianDev24
    But i think there is a way to create the DataSet Method in the backend and just use Component Parameter for Options, like the Sortable Value.
    Tricky
    @Trickyyy
    hey
    Quick question
    I'm unable to change the position of BSModal
    or even the background color
    John Bomhold
    @jbomhold3
    V1 or V5?
    @Trickyyy
    John Bomhold
    @jbomhold3
    Also an example of what your trying to do would be good.
    John Bomhold
    @jbomhold3
    I added ModalColor to V5 and DialogClass parameters.
    In next release you will be able to do something like <BSModal ModalColor="BSColor.Primary" DialogClass="position-absolute top-0 start-0 m-0"> to make the modal primary color and position it top left. I thought about adding first class support for the position. However, it's not supported first class with bootstrap and can break other options.
    I released an unlisted version so you can use it now
    https://www.nuget.org/packages/BlazorStrap/5.0.105-Preview1a
    Tricky
    @Trickyyy
    thank you so much mate!
    I was really struggling with that
    Tricky
    @Trickyyy
    Is it limited to the enum colors?
    nvm got it thanks!
    JulianDev
    @JulianDev24
    Is there a way just to pass a boolean to the CheckBox and add a method when its getting checked or unchecked?
    John Bomhold
    @jbomhold3
    Don't bind and use ValueChanged this is something native in Blazor.
     <BSInputCheckbox CheckedValue="true" UnCheckedValue="false" ValueChanged="(bool e) => Callback(e)" Value="value"  />
    @code {
        bool value { get; set; }
    
        private void Callback(bool e)
        {
            value = e;
            // your stuff
        }
    
    }
    JulianDev
    @JulianDev24
    Oh Thank u man :D
    JulianDev
    @JulianDev24

    crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at SyxosWASM.Pages.Error.OccurredErrors.InfoCallBack(ErrorModel errorModel) at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at BlazorStrap.BlazorStrapActionBase.ClickEvent(MouseEventArgs e) at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

    <div aria-live="polite" aria-atomic="true" class="position-relative bd-example-toasts" style="overflow-y: scroll "> <BSToaster/> </div> @Body

    _blazorStrap.Toaster.Add("Error", "Test Error", o => { o.Color = BSColor.Danger; o.CloseAfter = 3000; o.Toast = Toast.TopRight; });

    I dont get why its not working 🤷🏼‍♂️

    John Bomhold
    @jbomhold3
    BSToaster nor BSToast use BlazorStrapActionBase whatever NullReferenceException is happening before/after anything to do with toast shoot me a PM will help you find it
    need the full call stack and function that's calling _blazorStrap.Toaster.Add @JulianDev24
    John Bomhold
    @jbomhold3
    Sorry about any delayed responses atm I'm on a business trip. BSDataTable is getting some rework. DataSet and TotalRecords will be marked as Obsolete in the next preview release and removed in the full release. New way should be easier to understand and offer the same flexibility
    pahe
    @pahe
    hi, im trying to use the fluent validation extension, but it seem like its using a old version of fluentvaldation.. is there any new version of this?
    John Bomhold
    @jbomhold3
    @pahe V5 I assume?
    1 reply
    that library is super simple just needs to be updated for .net 6 if someone wants to do a pull request for it will get it pushed. I'm on a company trip atm
    Nicholas Budd
    @anaximander23
    hi, just dropped by because I've been looking at BlazorStrap for a project and I ran into something odd
    I keep seeing links to https://blazorstrap.io/extensions but if I try to go there the page seems to get stuck in a redirect loop endlessly adding p=/~and~q= to the query params again and again...
    Alberto Passalacqua
    @AlbertoPa
    I see that issue too ^
    John Bomhold
    @jbomhold3
    V5 the extensions but tree view (not yet ported) are core now. But will fix the link on the v1 docs
    I get home this weekend and will have time to address it
    Mattias
    @wouldBeNerd
    Hi, I can't get BSDropdown toggler BSToggle wo work as an outlined button with IsOutline="true" is this not available or am I doing it wrong?
    John Bomhold
    @jbomhold3
    IsButton needs to be true as well
      .AddClass($"btn-outline-{Color.NameToLower()}", IsOutlined && IsButton)
    John Bomhold
    @jbomhold3
    John Bomhold
    @jbomhold3
    If your using BSDataTable already please update to one of the new methods FetchData or OnChange see docs. We have two styles now to change updates events. Personal preference is FetchData but OnChange is likely easier to understand for new people. All reflection is now done in the BSDataTable it's self . Enjoy
    John Bomhold
    @jbomhold3
    I created a discord server for BlazorStrap gitter is great but can be slow to get messages though https://discord.gg/q7BkDycCHt will still actively be checking both
    John Bomhold
    @jbomhold3
    BlazorStrap 5.0.106-Beta1 is released see for release notes
    https://github.com/chanan/BlazorStrap/releases/tag/5.0.106-Beta1
    This is a beta release because it does contain code changes that need testing to make sure they didn't break anything.
    BBB
    @batthota

    I am using a Blazorstrap modal in the BWA project with below code, when you click on the close button the dialog closes, then the screen gets frozen. any help on this issue is much appricated.

    <BSModal DataId="modal2" HasCloseButton="true" ShowBackdrop="true">
    <Header>Withdraw bid</Header>
    <Content>Would you like to withdraw bid?</Content>
    <Footer Context="modal">
    <BSButton MarginStart="Margins.Auto" Color="BSColor.Secondary" @onclick="modal.HideAsync">Close</BSButton>
    <BSButton Color="BSColor.Primary">Understood</BSButton>
    </Footer>
    </BSModal>

    <BSButton Color="BSColor.Primary" Target="modal2">Launch demo modal</BSButton>