Hi,
I'm quite new with asp and telerik components, so I need some help to figure this out:
i'm trying to validate GridDropDownColumns that hold Combobox's and check is text area of combobox filled with value from dropdown.
Now my problem is when I try to add custom validator in cs code side, it doesn't fire serverside validation. I don't want to add templatecollums to my grid if it's not necessary.
in itemDataBound:
if (e.Item is GridEditableItem && e.Item.IsInEditMode){ GridEditableItem item = e.Item as GridEditableItem; if(item["content"].Controls[0] is RadComboBox) { GridDropDownListColumnEditor editor = item.EditManager.GetColumnEditor("content") as GridDropDownListColumnEditor; TableCell cell = (TableCell)editor.ComboBoxControl.Parent; CustomValidator validator = new CustomValidator(); validator.ServerValidate += new ServerValidateEventHandler(comboboxValidations_ServerValidate); validator.ValidationGroup = "comboGroup"; validator.ErrorMessage = "!"; validator.ValidateEmptyText = true; validator.ControlToValidate = editor.ComboBoxControl.ID; cell.Controls.Add(validator); }}