Giter Club home page Giter Club logo

Comments (3)

nilayjoshi89 avatar nilayjoshi89 commented on August 28, 2024

Hi Sekulicb,

I tried to reproduce scenario issue with steps you mentioned.
I figured there are two separate issue here-

1) Crash on clearing all items -
Are you getting serialization error in exception? If so, try making entity public. i.e. TestData

2) Property throwing exception -
This is highly not recommended doing so. Try creating new property which does not throw exception or wrapper object. However, if you don't control that entity (Third Party) or don't want to create wrapper one, handle property exception in Look-up contract. I was able to do so. Should work for you as well.

One suggestion, implement LookUpContract only if you need custom sorting or want to support new object creation on UI. Basic, filtering is by default provided by control on DisplayMemberPath.

Let me know if this helps!

Thanks,
Nilay Joshi

from blackpearl.

sekulicb avatar sekulicb commented on August 28, 2024

Hi @nilayjoshi89

  1. No, sorry my bad, I forgot to include the public keyword at the beginning. Entity is public
  2. I actually considered creating wrapper object, and I think it should be a way to go. Catching exception for each object will not be performant, since ItemSource will contain right from the start ~4500 items.

Yes, "starts with" query will not work for me. I need to match cases not just check if the string starts with given input. I need to check if substring is found in string. So for example:

user starts typing "lay"

it will find the nilay as search result instead of typing "ni...." to get the same result.

Thanks

from blackpearl.

nilayjoshi89 avatar nilayjoshi89 commented on August 28, 2024

Closing issue as all points are addressed.

Thanks,
Nilay Joshi

from blackpearl.

Related Issues (15)

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.