Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 03 12:11
    dotnet-maestro[bot] commented #1813
  • Jun 03 12:11

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • Jun 03 12:11

    dotnet-maestro[bot] on master

    Update dependencies from https:… (compare)

  • Jun 03 12:11
    dotnet-maestro[bot] closed #1813
  • Jun 03 12:06
    dotnet-maestro[bot] opened #1813
  • Jun 03 12:06

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    Update dependencies from https:… (compare)

  • Jun 03 12:05

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • May 30 11:54
    jenergm commented #279
  • May 29 14:59
    tmenier commented #1492
  • May 29 04:58
    danroth27 updated the wiki
  • May 28 14:25
    lewing commented #1807
  • May 27 19:13
    matheusjulio96 commented #1652
  • May 27 13:30
    springy76 commented #306
  • May 27 13:13
    SQL-MisterMagoo commented #306
  • May 27 13:07
    springy76 commented #306
  • May 27 13:06
    springy76 commented #306
  • May 27 12:24
    SQL-MisterMagoo commented #306
  • May 27 12:20
    springy76 commented #306
  • May 27 12:10
    dotnet-maestro[bot] commented #1812
  • May 27 12:10

    dotnet-maestro[bot] on darc-master-e3474f54-f92f-4c3f-b116-ed9bdfe9754d

    (compare)

Madhu Sudhanan P
@Madhust
How to check whether its Blazor server side application or webassembly in sample level? is there any API available to use it?
SQL-MisterMagoo
@SQL-MisterMagoo
No API unfortunately- there are a few hacks - like checking if your JSRuntime is IJSInProcessRuntime (CSB)
Madhu Sudhanan P
@Madhust
@SQL-MisterMagoo thanks for the info.. I will give it a try
SQL-MisterMagoo
@SQL-MisterMagoo
I might have the exact interface name wrong, I'm but in front of a PC
tleylan
@tleylan
Would someone supply an example of how the developer might not know?
Peter Morris
@mrpmorris
Library author wouldn't know
SQL-MisterMagoo
@SQL-MisterMagoo
I guess more importantly, how does it help to know?
tleylan
@tleylan
Aw, so the question was how (as a library author) do I know whether it is CSB or SSB? And is there an example of how the code would work differently? Could the author include a property that the developer should set if he wants it to work correctly?
Peter Morris
@mrpmorris
One might use Web APIs from its services, the other some class that works directly on the server
e.g. grabbing data from the DB
Probably a poor example
Jan-Willem Spuij
@jspuij
Check with reflection from which assembly system types come from? Mono vs dot net core?
tleylan
@tleylan
Regardless (I assume there must be a legitimate reason to know) wouldn't an IsServerSide boolean property on the component suffice? It defaults to true (for now) and if a developer asks "hey man this is client side what's going on" they set that property to false? Another case of having to type something for now but it works and eventually some reliable automated method comes along that sets it.
Jan-Willem Spuij
@jspuij
or start a thread.... and catch the exception 😅
tleylan
@tleylan
or prompt the user to see if they have any ideas :-)
Jan-Willem Spuij
@jspuij
I like that one... although, like referenda, the outcome is usually undesired.
tleylan
@tleylan
it can show a short informational video before it prompts with the question
I don't honestly know but isn't there a unique id that identifies a client on SSB? It is how the server knows who they are.
That wouldn't exist on CSB right?
If you :love_letter: Blazor, please share
If you :love_letter: me, share twice ;)
Sören Nils Kuklau
@chucker
@tleylan there is no client on CSB — you run on the client.
Sören Nils Kuklau
@chucker
(You night identify yourself against an API, though)
*might
tleylan
@tleylan
@chucker I don't need to know this someone posted a question. My guess was that SSB produces a value that it transmits in some way to the code the browser receives. That value is returned with events so SSB knows which data (it buffers on the server) to use. So first that's a question is nothing like that occurring? Then is there a way to get to that SSB created value? Such a value would not exist on CSB which is why I suggested the lack of it would tell us it is CSB. I suggested setting a property on your SSB app and be done with it. Thanks.
@EdCharbeneau Hi Ed I don't tweet so I can't reply in your feed but someone mentioned Material Design, you mentioned Telerik. You might take a look at Blazorize and tell the person interested to look at it: https://blazorise.com/
Sören Nils Kuklau
@chucker
BlazorStrap isn’t getting enough love
Ed Charbeneau
@EdCharbeneau
@tleylan I'm not in marketing or sales, but there are people in the org who get upset if I share alternative libs.
I think they're great solutions, but I try to stay neutral when it comes to UI libraries that aren't ours.
Sören Nils Kuklau
@chucker
…but you liked my reply
Mentioning competitors!
Tsk
Ed Charbeneau
@EdCharbeneau
Shhh, don't tell marketing
I don't see it as competition, it fills different needs for different customers
Sören Nils Kuklau
@chucker
;)
Ed Charbeneau
@EdCharbeneau
I like that I can get started with BlazorStrap, then when I need a Grid or Scheduler I can add Telerik and still have a uniform UI
There are people who don't agree who pay my paychecks :)
Our CMS, Sitefinity runs on MVC. That would be like staying that when I do an MVC demo, it's cutting into the Sitefinity customer base because I'm encouraging developers to roll their own CMS
It's easier to just be neutral. :)
Sören Nils Kuklau
@chucker
Right. I look at it as Telerik is a higher-end option.
Ed Charbeneau
@EdCharbeneau
Yep!
Good, better, best
That's a good ecosystem to have
Nikolai Damm
@niem94
Hey all,
Im currently trying to build a table with blazor and blazorise where one can add new rows on a button click. See this link for an example in javascript (https://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=table-with-add-and-delete-row-feature).
My problem is that i’m not sure on how to dynamically create raw html with blazor. Any ideas?
Jan-Willem Spuij
@jspuij

@niem94 you can create raw html with Blazor: https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.markupstring?view=aspnetcore-3.1.
But the jquery way is from 2006, the world has evolved since then. Blazor wants you to think in components that render your UI based on parameters and state.

<table>
@foreach (var item in this.Items)
{
    <tr><td>@item.Name</td><td>@item.Description</td></tr>
}
</table>

To add a row to this table, you could just add and item to the Items collection in this component from the buttons event handler and the component will rerender the table based on the items.

Peter Morris
@mrpmorris
@jspuij the outcomes of referenda are only undesired for the losers. For the majority the outcome is most welcome
Nikolai Damm
@niem94
@jspuij Oh that simplifies it a lot. Thanks! All those years of js DOM manipulation clouds my vision sadly 😂
Would i then be able to make the row editable, with a simple if/else with item.IsEditable, and having the markup that alows editing render instead whenever the bool is true?
Peter Morris
@mrpmorris
Yes you can
When looping is good to set @key too