[Default]
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="True" >
<Columns>
<ej:Column Field="OrderID" HeaderText="Order ID" IsPrimaryKey="true"TextAlign="Right" Width="90"/>
<ej:Column Field="CustomerID" HeaderText="Customer ID" Width="90"EditType="Dropdown" />
. . . . . . .
</Columns>
</ej:Grid>
[Default.aspx]
List<Customer> customers = new List<Customer>();
protected void Page_Load(object sender, EventArgs e)
{
customers.Add(new Customer() { text = "Andreas", value = "123" });
customers.Add(new Customer() { text = "Frank" , value = "124" });
customers.Add(new Customer() { text = "Willi" , value = "125" });
customers.Add(new Customer() { text = "Horst" , value = "126" });
customers.Add(new Customer() { text = "Manfred", value = "127" });
BindDataSource();
}
private void BindDataSource()
{
. . . . . . .
this.OrdersGrid.DataSource = order;
var index = this.OrdersGrid.Columns.FindIndex(col => col.Field =="CustomerID");
this.OrdersGrid.Columns.ElementAt(index).DataSource = customers;
this.OrdersGrid.DataBind();
}
[Serializable]
public class Customer
{
public Customer()
{
}
public Customer(string text, string value)
{
this.text = text;
this.value = value;
}
public string text { get; set; }
public string value { get; set; }
}
}
Hi Kumar,
Thanks for using Syncfusion Products
We considered this requirement “Editing is not working fine while set dataSource for dropdown” as a bug and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Prasanna Kumar N.S.V
Hi Kumar,
Please ignore the previous update,
We considered the requirement “Editing is not working fine while set dataSource for dropdown” as a bug. We have logged a defectreport on this and will fix the issue internally, also the fix will be included in 2015 Volume 1 Service Pack 1 Release, which has been scheduled to be rolled out in the month of April 2015.
We have also created an incident internally to have a follow up with this issue.
Regards,
Prasanna Kumar N.S.V