Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ricardo
    @ricardoromaobr
    ?
    Mladen Macanović
    @stsrki
    Yes every provider must implement IClassProvider. But not every component needs custom implementation. Only the ones that have some specific structure. Most of the times they're all the same except for classnames or style settings.
    IVData
    @IVData
    Hey there. I'm wondering how with a blazorise linechart I can set the y-axis to begin at 0? It just starts near the lowest value in the chart.
    Closest thing I could find was setting AxeTicks.BeginAtZero to true but that didnt work
    Mladen Macanović
    @stsrki
    @IVData by looking at chartjs doc it seems it should work like that
    can you provide me with a sample code so maybe I can find a solution?
    IVData
    @IVData
    I dont really sorry I have to head out. But this is what Im using to set the option:
    var axe = new Axe() { Ticks = new AxeTicks() { BeginAtZero = true } };
    lineChart.SetOptions(new LineChartOptions() { Scales = new Scales() { YAxes = new List<Axe>() { axe} } });
    Sorry yeah its messy haha
    lineChart is defined like LineChart<double> lineChart;
    I also clear the chart (this is a live chart that scrolls, so I clear it to re-draw it). Does the axes need to be set each time I call AddDataSet()?
    Mladen Macanović
    @stsrki
    @IVData try to set OptionsJsonString attribute instead. Use this "{\"scales\": {\"yAxes\": [{\"ticks\": {\"beginAtZero\": \"true\"}}]}}" as value.
    IVData
    @IVData
    That worked thanks!
    So does that mean the other options aren't working properly?
    Mladen Macanović
    @stsrki
    It's not the problem with Options but with the default json serializer that Blazor is using. It is pretty buggy and it doesn't support inheritance. Also some required features are also missing. I thinking to write my own json serializer instead but that can take time. So that's why I introduced OptionsJsonString as a workaround.
    Mladen Macanović
    @stsrki
    Blazorise 0.8.5 is finally released. See release notes for a full list of changes.
    Github: https://github.com/stsrki/Blazorise
    Ricardo
    @ricardoromaobr
    Nice!
    Brett
    @brettwinters
    image.png
    Hi @stsrki - not sure if this is my issue - I remember playing around with my css (body, z-order) to try to get the toolips working
    Mladen Macanović
    @stsrki
    @brettwinters what is the problem here? Tooltips or modal backdrop?
    Brett
    @brettwinters
    the modal backdrop. But i’m not sure whats causing this issue. Are your demos working?
    Mladen Macanović
    @stsrki
    image.png
    Seems like they're working
    Brett
    @brettwinters
    Yeah I must have set something somewhere....🤔
    Mladen Macanović
    @stsrki
    .modal-backdrop { z-index: -1; }
    try this
    something should be wrong with z-index
    Brett
    @brettwinters
    Oh yes I think mine is showing about 1000 - I think that’s the BS setting. I’ve already closed my laptop. Will try tomorrow. Have a good evening !
    kiyote
    @kiyote
    And just to make more work for everyone, new Blazor packages have dropped. :/
    Brett
    @brettwinters
    Hi @stsrki - ahhh, I see you're overriding the default bootstrap z-order (1040) using blazorise.bootstrap.css...
    I was going on holiday so I set up <environment names="offline">- with local copies of the css/js, which I couldn't get to work anyway. But it seems have stopped your css from loading...
    Brett
    @brettwinters
    anyway issue solved
    Mladen Macanović
    @stsrki
    Blazorise updated to .NET Core 3.0
    https://blazorise.com/docs/release-notes/release086/
    IVData
    @IVData
    @stsrki i dont really understand the last step in the quick start guide
    are the static files now contained in the nuget package, no .zip?
    IVData
    @IVData
    Seems like the answer is yes. I should have just tried before asking :)
    intiharj
    @intiharj
    I have a bar chart with two datasets (series). I'd like all the bars for the first dataset to be blue and all the bars for the second dataset to be green. Using chartjs, I'd set the dataset.backgroundColor to a string representing a single color value (vs an array of colors) and every bar in that series would be the same color. However, BarChartDataset<T> appears to only support a list of colors. I can make this work, but I'm looking for a simpler way to set the default color for a series.
    Ricardo
    @ricardoromaobr
    Sidebar component does'nt has a background property to change background color ?
    Mladen Macanović
    @stsrki
    @ricardoromaobr i'm on vacation so I cannot check it. But I think you can do it by setting the css root variable. You can see in the source code
    @intiharj currently only an array is supported. I think I can consider adding support for backgroundColor in one of next versions
    Ricardo
    @ricardoromaobr
    Yes, I made it. :)
    Ricardo
    @ricardoromaobr
    Hi ! I'm looking DataGrid and I not see how to page data from database?
    And looking on example I see that it use a list and page them. If a take a number of rows on database DataGrid will not now the number of page to create page component. You thing something about it?
    *Do yout think something about it?
    Ricardo
    @ricardoromaobr
    maybe a new component DataPage that wrap a DataGrid and configure it get a new list every time tha page change
    I'm think about it, I don't know if I can do it:)
    Ricardo
    @ricardoromaobr
    Oops!Let me write again. I think that can be write a new component DataPage that would wrap a DataGrid and configure it to get a new collection every time the page change and DataPage will need to subscribe to some events like sort and others that need new data to be showed. I don't know, I'm think how it would be made fast
    WebForms has something like it. If I remember :)
    Mladen Macanović
    @stsrki
    @ricardoromaobr I think it should already be possible to do. I will try to see what can be done and will let you know