Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4315
Using cascading combo controls, as igGrid editors, in a MVC solution
posted

When trying to configure an igGrid to have parent and child cascading combo controls as editors, in a MVC solution, changing the parent value doesn't change the values in the child combo. This is the code:

Code Snippet
  1. @(Html.Infragistics().Grid(Model.AsQueryable()).ID("grid1").AutoCommit(true)
  2.     .PrimaryKey("ProductId")
  3.     .Features(features => {
  4.         features.Updating().EditMode(GridEditMode.RowEditTemplate).ColumnSettings(cs => {
  5.             cs.ColumnSetting().ColumnKey("CategoryName").EditorType(ColumnEditorType.Combo)
  6.                 .EditorOptions("id: 'comboCategory',  dataSource: '/Home/GetData', textKey: 'CategoryName', valueKey: 'CategoryName'");
  7.             cs.ColumnSetting().ColumnKey("ProductName").EditorType(ColumnEditorType.Combo)
  8.                 .EditorOptions("id: 'comboCity', dataSource: '/Home/GetData2', parentCombo: 'comboCategory', parentComboKey: 'CategoryName', textKey: 'ProductName', valueKey: 'ProductName'");
  9.         });
  10.     }).DataBind().Render() )