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
130
MVC Helper igGrid cascade combobox
posted

Hello, 

We are trying to add in our grid two columns of type combobox with cascading using the HTML Helper for MVC. We are using the parentCombo and parentComboKey options but when we add the key to match the value from the first dropdown, the second dropdown is not showing anything. What are we doing wrong? Here is that part of our code: 

cs.ColumnSetting().ColumnKey("Table").ReadOnly(false).Required(true).EditorType(ColumnEditorType.Combo).ComboEditorOptions(co => co.ID("TableCombo").DataSource(ViewBag.Tables).ValueKey("valTable").TextKey("txtTable").Mode(ComboMode.DropDown).EnableClearButton(false));

cs.ColumnSetting().ColumnKey("Field").ReadOnly(false).Required(true).EditorType(ColumnEditorType.Combo).ComboEditorOptions(co => co.ParentCombo("#TableCombo").ParentComboKey("keyTable").DataSource(ViewBag.Columns).ValueKey("valColumn").TextKey("txtColumn").Mode(ComboMode.DropDown).EnableClearButton(false));

Thanks in advance. 

Regards,