-
Hi I am tyring to get "HxAutosuggest" to work, but I not sure what I am missing. I pretty much am using the example in the documentation with some minor changes (hooked up my own service methods to grab the data, my own DTO and using a long instead of int") I am using Blazor 8 with InteractiveServer so when I was going through the "getting started" insturctions I am a bit confused on what to use and not to use. @Html.Raw(HxSetup.RenderBootstrapJavaScriptReference()) - does not seem to work for me builder.Services.AddHxServices(); // not sure if I need this or not I don't see _host.cshtml/_layout.cshtml anymore I don't see a Statup.cs anymore as well So I am not sure if this what is casuing my problem or not. What is happening is only "ResolveAutosuggestItemFromValue" is being triggered, when I type anything in the box the "ProvideSuggestions" never gets triggered. I also noticed the "X" button on the input box does nothing as well. So this leads me to think I am missing something.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have created a full example if that helps. With this code if I load the page up I will see the thumbups and I will see the input box with "Jim" in it. If I try to type "bob" nothing happens.
|
Beta Was this translation helpful? Give feedback.
-
Never mind I forgot already how Blazor 8 works. I choose interatciveServer and per component which defaults to static mode for the pages. I I had to speciify the render mode to make it work. Now it is working. It still would be great to see the documentation updated on where to put what as I am still not sure if I put everything in the right place. |
Beta Was this translation helpful? Give feedback.
Never mind I forgot already how Blazor 8 works. I choose interatciveServer and per component which defaults to static mode for the pages. I I had to speciify the render mode to make it work.
Now it is working. It still would be great to see the documentation updated on where to put what as I am still not sure if I put everything in the right place.