Giter Club home page Giter Club logo

Comments (9)

chrissainty avatar chrissainty commented on August 22, 2024 1

No problem :)

from typeahead.

fnils avatar fnils commented on August 22, 2024

If I add @using Blazored.Typeahead.Forms in _imports.razor the first error disappears but I get the error below instead. I haven't added the EditForm code here. If I do I still get this error.

InvalidOperationException: Object of type 'Blazored.Typeahead.BlazoredTypeahead`1[[Test.Shared.Area, Test.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' does not have a property matching the name 'bind-Value'.

from typeahead.

chrissainty avatar chrissainty commented on August 22, 2024

If you're using the standalone version then you don't need to use the EditForm component.

I've just pushed a new version this morning which fixes an issue with a razor files being included in the end project. Could you try upgrading and see if it sorts things?

from typeahead.

fnils avatar fnils commented on August 22, 2024

Yes, I have changed it. The code looks like this:

        <BlazoredTypeahead SearchMethod="@SearchAreas"
                           bind-Value="@SelectedArea"
                           Placeholder="Search">

            <SelectedTemplate Context="Area">
                @Area.Name
            </SelectedTemplate>
            <ResultTemplate Context="Area">
                @Area.Name (@Area.Descr)
            </ResultTemplate>
            @*<NotFoundTemplate>
                    @if (notFound)
                    {
                    @:Sorry, there weren't any search results.
                    }
                </NotFoundTemplate>*@
        </BlazoredTypeahead>

from typeahead.

fnils avatar fnils commented on August 22, 2024

I upgraded to version 3.0.2 and now the first error seems to be gone.
But I get (which is the same as before I guess):
InvalidOperationException: Object of type 'Blazored.Typeahead.BlazoredTypeahead`1[[Test.Shared.Area, Test.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' does not have a property matching the name 'bind-Value'.

from typeahead.

fnils avatar fnils commented on August 22, 2024

I don't know if it makes a difference but at the same time as I upgraded to version 3.01 I also upgraded to asp.net core 3.0-preview-6.

from typeahead.

chrissainty avatar chrissainty commented on August 22, 2024

Sorry for the long reply @fnils. I'm now doing the upgrade to Preview 6, it should be on NuGet in the next hour. Give it a go and let me know if it sorts the issue.

from typeahead.

fnils avatar fnils commented on August 22, 2024

Thank you! I'll check it out during the day hopefully. Otherwise tomorrow.

from typeahead.

fnils avatar fnils commented on August 22, 2024

It's working! Thank you!

from typeahead.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.