Hi all,
I have simple data source like this:
let ds = [
{
value: "value1",
text: "Value no 1"
},
{
value: "value2",
text: "Value no 2"
}
];
and I instantiate ej dropdownlist using that data source.
And then I want to select the item using the value (not the text).
This code does not work:
{
value: "value2"
}
But this code works:
{
value: "Value no 2"
}
Also getter, when I want to know what is the selected value, the .value is the same as the .text..
How I can achieve get/set using value not text?
Thank you.