I was trying to get EnableEmptyListItem to work with prometheus, but it will not. It works just like the documentation sugges if I change to RADgrid. I also tried it from the code behind on ItemDataBound using essentially the demo code
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
GridEditableItem editedItem = e.Item as GridDataItem;
GridEditManager editMan = editedItem.EditManager;
GridDropDownListColumnEditor editor = (GridDropDownListColumnEditor)(editMan.GetColumnEditor("Elem_QEDStdTbl"));
DropDownList ddList = editor.DropDownListControl;
ddList.Items.Insert(0,
new ListItem("Select Contact Title", "NotSetItem"));
ddList.Items[0].Attributes[
"style"] = "color: red";
ListItem item = new ListItem();
item.Text =
"new item";
item.Value =
"0";
ddList.Items.Add(item);
}
}
Under prometheus - nothing is added. Under RadGrid, both items (the insert and add) are shown.