Open hasanmk52 opened 4 years ago
If the id on your json is a integer you have to use a string, because flexdatalist compares a string (from the input) and a integer (from the json)
He logrado hacer andar la preseleccion de valores desde solicitudes remotas modificando la linea 568, pasando de === a ==. . Ojala le sea de ayuda a alguien.
$("input.flexdatalist").flexdatalist({ searchIn: 'name', cache: false, minLength: 0, url: ajaxGetCountries, requestType: "POST", resultsProperty: 'countries', multiple: true, visisbleProperties: ["name"], valueProperty: 'id', textProperty: '{name}' });
On focus of the input I am able to select multiple values by getting the json response from my Spring Boot controller but I am unable to pre-populate a certain number of values when the page is loaded on this field. The documentation gives an example but that is if the data is from a .json file but this is not the case here.
Can you please help resolve this issue? Also posted the same question on stackoverflow: https://stackoverflow.com/questions/62690539/unable-to-pre-select-values-for-jquery-flexdatalist