Dmitry,
Following your latest links, I was able to make it happen.
It is probably not best practise but it works.
What I did:
I created a new property in my meeting list form control in the properties class:
[EditingComponent(TextInputComponent.IDENTIFIER, ExplanationText = "Please enter the event code", Label = "Event code")]
[Required]
public string EventCode { get; set; }
In the component class, i did:
public MultiSelectList GetAllMeetings(string code)
{
var meetings = MeetingItemProvider.GetMeetingItems()
.WhereContains("NodeAliasPath", code)
.Select(u => new MeetingBaseDto
{
Name = u.MeetingTitle,
NodeAlias = u.NodeAlias
});
return new MultiSelectList(meetings, "NodeAlias", "Name");
}
And then in the view, I did:
@{
var htmlAttributes = ViewData.GetEditorHtmlAttributes();
var code = Model.Properties.EventCode;
}
@Html.ListBoxFor(x => x.SelectedCategories, Model.GetAllMeetings(code), htmlAttributes)
In you have some advices please let me know.
Hope it will useful to someone else.
Sylvain