Grid - Autocomplete

Hi

Grid DialogTemplate ShipCountry not populate

code behind

public IEnumerable AutoDataSource;

private void bindcountry()

{

List<Countries> c = new List<Countries>();

c.Add(new Countries { text = "Austria", ID = "100001" });

c.Add(new Countries { text = "Australia", ID = "20002" });

c.Add(new Countries { text = "Bangladesh", ID = "300003" });

this.AutoDataSource = c;

this.ShipCountry.DataSource = c;

ShipCountry.DataTextField = "text";

ShipCountry.DataUniqueKeyField = "ID";

ShipCountry.DataBind();

}


Design

var data1 = JSON.parse('<%= new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(this.AutoDataSource)%>');

var data = ej.DataManager(data1).executeLocal(new ej.Query().select("ID", "text"));

$("#ShipCountry1").ejAutocomplete({

width: "100%",

dataSource: data,

fields: { text: "text", key: "ID" },

select: function (argument) {

$("#autoComp").val(JSON.stringify(argument.item));

},

enableDistinct: true

});


Thanks

Pratheep





Attachment: WebApplication1_8a47a7ba.rar

2 Replies

PR Pratheep October 19, 2017 01:31 PM UTC

Hi

google chrome browser not working but firefox working


Thanks

Pratheep



FS Farveen Sulthana Thameeztheen Basha Syncfusion Team October 20, 2017 01:03 PM UTC

Hi Pratheep, 

We have checked your given sample but we cannot reproduce your reported problem “ShipCountry not populate at chrome browser at our end”. We have attached the video demo of your given example in which data populate for autocomplete in both browsers.  
 
Please refer to the video:- 
 
 
We need some additional information to find the cause of the issue. Could you please share us the following details given below. 
 
1. Screenshot/Video Demo to replicate your issue in chrome browser. 
 
2. Exact scenario you are facing the issue. 
 
The provided details will helps us to analyze and provide you solution as early as possible.   

Regards, 

Farveen sulthana T 

 
 


Loader.
Up arrow icon