disable html encode

hello there, is there a way to disable automatic html encoding of characters like & in combobox item ?

thanks in advance

3 Replies 1 reply marked as answer

SP Sakthivel Palaniyappan Syncfusion Team June 3, 2020 10:52 AM UTC

Hi Nick,

Greetings from Syncfusion.

We would like to inform that we don't have encoding support in SfCombobox. Since we are not aware of your exact requirement, can you please provide additional details about your requirement .This will be helpful for us to provide the solution at earliest.

Regards,
Sakthivel P.



NI Nick June 4, 2020 06:34 AM UTC

hi thanks for the help. it is my mistake. the value is from json value, and therefore it is already html encoded. I just need to decode it before supplying to combobox


RS Ramya Soundar Rajan Syncfusion Team June 5, 2020 10:30 AM UTC

Hi Nick, 
 
Thanks for the update. 
 
We have checked the reported query and we have created a sample based on the REST Service for SfComboBox control. Please find the sample from the following link.   
   
   
We can get the details from the REST service and set as Datasource by using the following code in the ValueChanged event to get the data populated.   
   
Code Snippet: 
 
var content = await response.Content.ReadAsStringAsync();   
 Items = JsonConvert.DeserializeObject<FullData>(content);   
 
 
Please use the above code for Deserialization and let us know if you have any concern. 
 
Regards, 
Ramya S 


Marked as answer
Loader.
Up arrow icon