Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ComboBox OptionDataSource fetch after wildcard

    Hello,

    The OptionDataSource APIs are great, but it becomes a bit heavy because searches are performed after every user input, which is a bit overkill. I'd like to only fetch records when the user has entered a wildcard after his string e.g. 'objec%'.

    Most things go OK to implement this, however I can't seem to get the picklist populated if I try it like this. I think it's because when the result of the fetch is:
    "objects,
    objectA,
    objectB"

    there's actually no match with 'objec%' so the picklist stays empty. Is this a correct assumption? The dropdown picklist keeps saying "Loading data...".
    Any way to implement this in the SmartGWT framework directly? I've also tried setting the value back to 'objec' if the user typed the wildcard to get a match in the picklist and fetch happens, but no luck there.
Working...
X