Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend so data picker can have distinct items picked #410

Open
1 task
brannmark opened this issue Aug 16, 2024 · 1 comment
Open
1 task

Extend so data picker can have distinct items picked #410

brannmark opened this issue Aug 16, 2024 · 1 comment
Assignees
Labels
bug-report Something isn't working Hacktoberfest Issues open for Hacktoberfest contributions help wanted Extra attention is needed
Milestone

Comments

@brannmark
Copy link

Which Contentment version are you using?

4.7.0

Which Umbraco version are you using? For example: 13.2.1 - don't just write v13

13.4.1

Bug summary

Make it possible to have distinct values in data picker. Would be nice if picked data items is passed into a custom data source so one can if needed make sure that those values that are already picked is not returned as data items back to the UI.

public async Task<Umbraco.Cms.Core.Models.PagedResult<DataListItem>> SearchAsync(Dictionary<string, object> config, int pageNumber = 1, int pageSize = 12, string query = "", **IEnumerable<DataListItem> pickedDataListItems**)

Steps to reproduce

Pick items in a data picker. Open to pick again, same items can be picked as they are returned from data source.

Expected result / actual result

Would like to filter the data items returned based on already picked items.

Do you have Umbraco ModelsBuilder enabled?

  • Yes, it is enabled.

What browsers are you seeing the problem on?

Chrome, Edge, Firefox, Safari

@brannmark brannmark added the bug-report Something isn't working label Aug 16, 2024
@leekelleher leekelleher added this to the 5.1.0 milestone Aug 19, 2024
@iliyan-kulishev
Copy link

Yes. I was literally searching the docs for ways of doing this.

@leekelleher leekelleher added help wanted Extra attention is needed Hacktoberfest Issues open for Hacktoberfest contributions labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Something isn't working Hacktoberfest Issues open for Hacktoberfest contributions help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants