Hi everybody :-)
I need again your help!
I want to use the SfTextBoxExt to select different Tags. But I cannot get SelectedItems working.
So far I have this:
<syncfusion:SfTextBoxExt AutoCompleteMode="Suggest"
AutoCompleteSource="{Binding Tags_All}"
MultiSelectMode="Token"
SearchItemPath="Tag"
SelectedItems="{Binding SelectedTest.Tags}"/>
With a custom business class TestItem.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestApp
{
public class TestItem : INotifyPropertyChanged
{
public TestItem ()
{
Tags = new List<object>();
}
private string _GUID;
private List<object> _Tags;
public string GUID
{
get { return _GUID; }
set
{
_GUID = value;
OnPropertyChanged("GUID");
}
}
public List<object> Tags
{
get { return _Tags; }
set
{
_Tags= value;
OnPropertyChanged("Tags");
}
}
#region:PropertyChangedEvent
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged(string propertyName)
{
var handler = PropertyChanged;
if (handler != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
#endregion
}
}
No if I select a different Item in a SfDataGrid I want to show the Tags behind this Item.
How can I accieve this or am I doing something completely wrong.
Thank you very much!
Victor