Announcement

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

    Is there a way to hide an empty SelectItem?

    Hi, is there any way of hiding a SelectItem if a pickList (bound via an optionDataSource) is empty (does not have any pickList results)?

    #2
    This doesn't seem like a good idea, as the user would see the pickList appear during data loading, then vanish. Many users would perceive this as broken rather than understanding that there were zero results.

    Regardless, if you wanted to achieve this, you'd have to use undocumented, unsupported APIs. Eg, currently, the SelectItem stores it's pickList as the "pickList" property, and you could call "hide()" on it from dataArrived.

    Just to emphasize: this is not a supported approach, and will likely cause issues.

    Comment


      #3
      Thanks guys, I will advise accordingly. I think the people who made the request expected the initial form render to happen only after the pickList has been populated. I agree with your sentiment, I don't see how this can be good UX.

      Comment

      Working...
      X