I have created on widget and defined one content item selector property called links
now when i select multiple activities it displays as a list in UI. Here is example:
now when i change order like moving last link to first it does not change order in ui. when delete all and select again with new order then it shows with new order. but i want to apply the changes when i change the order. It is working in my page template . but not in widget. So is there anything that i am missing. Here is the code responsible
var bannerGuids = vm?.Properties?.SelectedNavigationItems.Select(i => i.Identifier).ToList();
var query = new ContentItemQueryBuilder()
.ForContentType(NavigationItem.CONTENT_TYPE_NAME, config => config
.WithLinkedItems(3)
.Where(where => where
.WhereIn(nameof(IContentQueryDataContainer.ContentItemGUID), bannerGuids)));
IEnumerable<NavigationItem> SelectedNavigationItems = await _contentQueryExecutor.GetMappedResult<NavigationItem>(query);
model.NavigationItems = SelectedNavigationItems.ToList();
Environment
Xperience by Kentico version: [30.5.3]
.NET version: [8]