I'm looking at your demo http://www.telerik.com/help/aspnet-ajax/grid-linq-to-sql-manual-crud-operations.html.
I've used it successfully in the past but now I need a combo box dropdown and I'm getting nowhere. It crashes on Object reference not set to an instance of an object.
Where is a decent example?
-----------------------
Here's my code. I've already verified that the correct data is being returned to the DataSource.
GridDropDownListColumnEditor rcb = ((GridDropDownListColumnEditor)editableItem.EditManager.GetColumnEditor("Field1"));
rcb.DataTextField = "text";
rcb.DataValueField = "value";
rcb.DataSource = HSSDDataLayerStatic.getFieldStatus();
rcb.DataBind();
inputSetting.TargetControls.Add(new TargetInput(rcb.UniqueID, true));
I've used it successfully in the past but now I need a combo box dropdown and I'm getting nowhere. It crashes on Object reference not set to an instance of an object.
Where is a decent example?
-----------------------
Here's my code. I've already verified that the correct data is being returned to the DataSource.
GridDropDownListColumnEditor rcb = ((GridDropDownListColumnEditor)editableItem.EditManager.GetColumnEditor("Field1"));
rcb.DataTextField = "text";
rcb.DataValueField = "value";
rcb.DataSource = HSSDDataLayerStatic.getFieldStatus();
rcb.DataBind();
inputSetting.TargetControls.Add(new TargetInput(rcb.UniqueID, true));