Hi!
I have fowlling insert command
If the valditaion with errors, i want to change the border color of the field in the Grid Editor red. In which fields the errors are known to me.
I have tried to do this in the RadGrid1_ItemCreated event, but the event fires before the InsetCommand:
Have anyone a idea, how i can do this ?
Thank you very much
I have fowlling insert command
void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e) {........ var result = blala.ValidateAndSave(...); if (result.ResultCode == ValidationResultCode.Ok) { AddMessage("The data were successfully validated and Saved!"); NewAllEntriesToAccount(); } else { AddMessage("Please check the data. The following errors were found: ");
AddErrorList(RadGrid1.Columns[meldung.SpaltenIndex].UniqueName); }If the valditaion with errors, i want to change the border color of the field in the Grid Editor red. In which fields the errors are known to me.
I have tried to do this in the RadGrid1_ItemCreated event, but the event fires before the InsetCommand:
GridEditableItem item = (GridEditableItem)e.Item; TextBox combo = (TextBox)item[itemm.ItemArray[0].ToString().Replace(" ", "")].Controls[0]; combo.BackColor = GetColor((ClArt)itemm.ItemArray[2]); if (IsInErrorList(itemm.ItemArray[0].ToString().Replace(" ", ""))) { combo.BorderStyle = BorderStyle.Solid; combo.BorderWidth = 2; combo.BorderColor = System.Drawing.Color.Red; }Have anyone a idea, how i can do this ?
Thank you very much
