Megabit / Blazorise

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
https://blazorise.com/
Other
3.3k stars 533 forks source link

Documentation Update - Autocomplete with preselected values #3790

Closed oaldrian closed 2 years ago

oaldrian commented 2 years ago

Is your feature request related to a problem? Please describe.

Documentation update - Autocomplete

Describe the solution you'd like Add an example of how to use Autocomplete component with a text / value that is set in oninitasync, different to the one with multiselect.

Additional context

I just spent like an hour figuring out how to set a predefined value to the Autocomplete component.

stsrki commented 2 years ago

@David-Moreira, you're the maker of this feature. Do you think it looks good?

David-Moreira commented 2 years ago

Hello, Can you help understand the difference in this example in comparison to our examples that might not have helped you enough? I dont' get the difference, can you explain please?

The https://blazorise.com/docs/extensions/autocomplete

oaldrian commented 2 years ago

I will provide an implementation example 👍

oaldrian commented 2 years ago

Oh my, oh my

Epic facepalm on my side.

I had loaded the data for the Autocomplete after setting the text and the value. Ofc the value could not be set, but only the text, and trying to set the value, reset the text.

Sorry for bothering you!

David-Moreira commented 2 years ago

Haha happens to the best of us. Just let us know if you need anything Blazorise related. Happy coding. :)