BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<EjsGrid AllowPaging="true" DataSource="@Orders" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })">
.. . . . . . . . . . . . . … .
<GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer Name" Width="150">
<EditTemplate>
<EjsComboBox ID="CustomerID" Value="@((context as Order).CustomerID)" DataSource="@Customers">
<ComboBoxFieldSettings Value="CustomerID"></ComboBoxFieldSettings>
<ComboBoxEvents ValueChange="OnChange" TValue="string"></ComboBoxEvents>
</EjsComboBox>
</EditTemplate>
</GridColumn>
<GridColumn Field=@nameof(Order.CustomerID1) HeaderText="Customer Name" Width="150">
<EditTemplate>
<EjsComboBox ID="CustomerID1" Value="@((context as Order).CustomerID1)" DataSource="@Customers1">
<ComboBoxFieldSettings Value="CustomerID"></ComboBoxFieldSettings>
</EjsComboBox>
</EditTemplate>
</GridColumn>
. . . . . . . . . . .. . .
</GridColumns>
</EjsGrid>
public void OnChange(ChangeEventArgs<string> Args)
{
Customers1 = Enumerable.Range(1, 12).Select(x => new Customer()
{
CustomerID = (new string[] { "VINET", "BERGS", "NANCY", "ANDREW", "DAVALIO" })[new Random().Next(5)],
}).ToList();
. . . . . . . .
//similar way you can change the datasource of other combobox
} |