Hi,
I have to modifiy a working web application which I did back in 2009.
The application has some RadGrids which only accept numeric value on their cells.
Currently it is possible to leave the cells blank.
Can you please show me how to force empty grid cells to a certain value (in this case 0)?
The RadGrid cells are created as follows:
I have to modifiy a working web application which I did back in 2009.
The application has some RadGrids which only accept numeric value on their cells.
Currently it is possible to leave the cells blank.
Can you please show me how to force empty grid cells to a certain value (in this case 0)?
The RadGrid cells are created as follows:
protected void rgOutages_ItemCreated(object sender, GridItemEventArgs e){ if (e.Item is GridEditableItem && e.Item.IsInEditMode) { GridEditableItem item = (GridEditableItem)e.Item; GridNumericColumnEditor editor = (GridNumericColumnEditor)item.EditManager.GetColumnEditor("Unit_Outage_CountInflexible"); editor.NumericTextBox.EmptyMessage = "0"; editor.NumericTextBox.MaxLength = 8; editor.NumericTextBox.MaxValue = 999; editor.NumericTextBox.MinValue = 0; editor.NumericTextBox.NumberFormat.AllowRounding = true; editor.NumericTextBox.NumberFormat.DecimalDigits = 0; editor.NumericTextBox.Width = Unit.Percentage(100); }}