Hi,
I am struggling with my dropdownlist in my FormTemplate. When I click on the Insert link it populates the dropdownlist just fine.
<radcb:RadComboBox
ID="rcbTitles"
AppendDataBoundItems="true"
DataSourceID="odsTitles"
DataTextField="Description"
DataValueField="TitleID"
Skin="WindowsGray"
SelectedValue='<%# Bind("Titles") %>'
runat="server">
<Items>
<radcb:RadComboBoxItem Text="Select" Value="" />
</Items>
</radcb:RadComboBox>
My ItemCommand looks like:
I am struggling with my dropdownlist in my FormTemplate. When I click on the Insert link it populates the dropdownlist just fine.
<radcb:RadComboBox
ID="rcbTitles"
AppendDataBoundItems="true"
DataSourceID="odsTitles"
DataTextField="Description"
DataValueField="TitleID"
Skin="WindowsGray"
SelectedValue='<%# Bind("Titles") %>'
runat="server">
<Items>
<radcb:RadComboBoxItem Text="Select" Value="" />
</Items>
</radcb:RadComboBox>
My ItemCommand looks like:
if (e.CommandName == RadGrid.InitInsertCommandName)
{
e.Canceled = true;
ListDictionary newValues = new ListDictionary();
newValues["Titles"] = "";
//Insert the item and rebind
e.Item.OwnerTableView.InsertItem(newValues);
}
I am using a FormTemplate. I am not understanding my error, I have been struggling for 2 days, is there no one on this forum that can help me? When I click on the Insert link and click cancel I get the following error:
DataBinding: 'Telerik.WebControls.GridInsertionObject' does not contain a property with the name 'Titles'.
What am I doing wrong? Please can some try and help me??
Thanks
Brendan