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
190
How to define custom validator for igGrid comboEditor
posted

Hi,

Hopefully this is a simple question but how do I define a custom validator for an MVC Databound igGrid comboEditor.  I've tried this but doesn't seem to compile

.Features(feature => {

feature.Updating().ColumnSettings(cs =>
{
cs.ColumnSetting().ColumnKey("ActvtyKey").ReadOnly(true);
cs.ColumnSetting().ColumnKey("OngngStatsFlg").EditorType(ColumnEditorType.Combo).EditorOptions("validatorOptions:{checkValue:validate2}").Required(false).ComboEditorOptions(co => co.DataSource(ViewBag.StatusText).ValueKey("FlagKey").TextKey("Status").Mode(ComboMode.DropDown).EnableClearButton(false));
})
.EditMode(GridEditMode.Cell);
})

I haven't seen an example for a Databound MVC Grid but only for javascript based grids and I can't seem to figure out how to do this.  Your help would be greatly appreciated.  Thanks!