Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Stefan Ossendorf
    @StefanOssendorf
    :-D
    Mladen Macanović
    @stsrki
    OK it is fixed. I have published it again and it should be listed in a few minutes
    sorry guys
    Stefan Ossendorf
    @StefanOssendorf
    Great :-)
    Some precious minutes where I don't have to update again ;-)
    So time for dinner!
    Mladen Macanović
    @stsrki
    hahaha
    enjoy your time
    Riccardo Poli
    @Riccard07678811_twitter
    thanks
    Mladen Macanović
    @stsrki
    👍
    Riccardo Poli
    @Riccard07678811_twitter
    is only blazorise.components?
    ah, ok, now arrive all the other update... :)
    Mladen Macanović
    @stsrki
    yeah, they don't come all at once
    depending on MS server
    Johann Preuer
    @jpreuer_twitter
    @stsrki Thanks for fixing the bug "Problem in PopupClosing Event of Datagrid #3149" with 0951. But ... it was partly fixed ;-) When I click outside the modal dialog and than I click the close button, all works fine now. The fix fixed it. But when I click outside the modal dialog and than I click the Save button, the Save function is execute but the PopupClosing even still get's a "FocusLostClosing" CloseReason event, and therefor it doesn't close. You can see this behaviour in my test project which i have uploaded last on GitHub.
    Mladen Macanović
    @stsrki
    @jpreuer_twitter Sorry to hear that. I will forward your response to David. He worked on the issue.
    Mladen Macanović
    @stsrki
    I've decided to start writing community articles for Blazorise. Do you guys have any themes that you would like to be covered? Any recommendations?
    Riccardo Poli
    @Riccard07678811_twitter
    @stsrki how to pose component, for me is little unclear all the possibility, flex, alignment etc, there are many ways to do that and this confuse me.
    Stefan Ossendorf
    @StefanOssendorf
    @stsrki Implement your own ThemeProvider which would be good/necessary for Corporate Identity conformance.
    Mladen Macanović
    @stsrki
    @Riccard07678811_twitter Our utilities closely follows bootstrap utility helpers, and in turn the CSS. So it would be good to know the basics before trying to use them
    @StefanOssendorf hmmm, can you explain?
    we do have some themes ready https://commercial.blazorise.com/themes
    Stefan Ossendorf
    @StefanOssendorf
    We have to keep the look & feel of our apps across platforms (WPF & Blazor) so a pre-created theme provider does not fit the bill. Currently our UI guy is just overwriting the necessary classes per component/case to fit our styling theme. Implementing a ThemeProvider which would do that automatically could make our life easier I think.
    Mladen Macanović
    @stsrki
    @StefanOssendorf Well, a theme provider is used for that. It builds all the colors and styles, and some other if defined.
    Do you can any use cases what is missing? What is your UI guy doing manually?
    Stefan Ossendorf
    @StefanOssendorf
    If I understand you correctly the question was what you could demonstrate wit a community article, right? And an example for the theme provider would be great. Or I'm just to dumb to find a tutorial like thing (except looking at actual implementations)
    Mladen Macanović
    @stsrki
    @StefanOssendorf aaaaaaaaaaaaaaaaaaaa,you were referring to an article. I'm the dumb one here haha. OK going on the TODO list
    it's a good idea, thanks
    Stefan Ossendorf
    @StefanOssendorf
    👍🏻
    Stefan Ossendorf
    @StefanOssendorf
    Is there a way to use the SelectList with an object for TValue? Or are only primitives supported?
    Btw do you have a discord server for Blazorise?
    Mladen Macanović
    @stsrki
    @StefanOssendorf As long as you implement proper equality comparer on that same object type than it should work. And also, override .ToString(), as that will be used as a value in the option element in the DOM
    I have
    Stefan Ossendorf
    @StefanOssendorf
    Link for the discord server please? :-D
    Mladen Macanović
    @stsrki
    Stefan Ossendorf
    @StefanOssendorf
    Thanks

    @StefanOssendorf As long as you implement proper equality comparer on that same object type than it should work. And also, override .ToString(), as that will be used as a value in the option element in the DOM

    I'm not sure. When I interpret your code correctly it won't work since there is no String -> Object translation happening.

    Mladen Macanović
    @stsrki
    What String -> Object ?
    if you have a Person class
    class Person
    {
     public int Id {get;set;}
     public string Name {get;set;}
    
     public override string ToString()
    {
      return Id.ToString();
    }
    }
    Stefan Ossendorf
    @StefanOssendorf
    Yep and a selectlist like so:
    <SelectList TItem="Person" TValue="Person" Data="@Persons" TextField="@(p => p.Name)" ValueField="@(p => p)" @bind-SelectedValue="SelectedPerson" />
    Where Person SelectedPerson { get; set; }.
    Riccardo Poli
    @Riccard07678811_twitter
    @stsrki hints like this is good to have on documentation
    Mladen Macanović
    @stsrki
    and also on a community article
    Stefan Ossendorf
    @StefanOssendorf
    @stsrki
    This does not work with the Person implementation you suggested:
    <SelectList TItem="Person" TValue="Person" Data="@Persons" TextField="@(p => p.Name)" ValueField="@(p => p)" @bind-SelectedValue="SelectedPerson" />
    
    @if (SelectedPerson is not null)
    {
    
        <p>
            Currently selected person is: @SelectedPerson.Id @SelectedPerson.Name
        </p>
    }
    
    @code {
        private List<Person> Persons
        {
            get;
        } = new()
            {
                new Person { Name = "Hans", Id = 1 },
                new Person { Name = "Peter", Id = 2 },
                new Person { Name = "Klaus", Id = 3 },
                new Person { Name = "Gustav", Id = 4 },
            };
    
        private Person _selectedPerson;
        private Person SelectedPerson {
            get => _selectedPerson;
            set {
                _selectedPerson = value;
                StateHasChanged();
                Console.WriteLine("Person has changed");
            }
        }
    }
    The selected person property is never changed.
    Mladen Macanović
    @stsrki
    @StefanOssendorf Yeah, it seems it will not work without some kind of custom converter. I remember I had it planned for some of the next milestones.
    Stefan Ossendorf
    @StefanOssendorf
    Ah okay. My workaround is now an IndexOf int to get the correct item.
    Guillermo Polonsky
    @polonskyg_twitter
    Someone knows if I have a Bar component with a BarBrand/BarStart/BarEnd and inside the BarBrand an image, inside the BarStart a listgroup and in the BarEnd another image. Is it possible to set the scrollbar (in case of many items in the listgroup in the BarStart) only for the BarStart and have the BarBrand and BarEnd fixed to be always visible?
    Mladen Macanović
    @stsrki
    @polonskyg_twitter well, it should be possible. But you will need to play with CSS since you're using some non-standard component inside of the Bar component and as a result, it is not properly styled.
    1 reply