I'm using a RadComboBox inside a RadGrid. It appears I have to use a GridTemplateColumn because I want to use a custom skin for the drop down and I want to have a blank entry as the first item by default. Is there a way to do that without using a GridTemplateColumn?
Anyhow, now that I'm using the GridTemplateColumn, I'm having a problem getting the in-line editing and inserting to work. When I try to insert an item I get this error: "DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'Type'." Editing an existing record works great.
Here is my code:
Your demo "Combo In Grid" under "Application Scenarios" has this functionality except it only has in-line editing and not inserting or I would follow that.
Thanks,
Chris
Anyhow, now that I'm using the GridTemplateColumn, I'm having a problem getting the in-line editing and inserting to work. When I try to insert an item I get this error: "DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'Type'." Editing an existing record works great.
Here is my code:
| <telerik:GridTemplateColumn HeaderText="Type" DataField="Type" > |
| <ItemTemplate> |
| <%# Eval("Type.Name") %> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <telerik:RadComboBox ID="PropertyType" runat="server" Width="250" Height="150" |
| DropDownWidth="300" ShowDropDownOnTextboxClick="true" MarkFirstMatch="true" |
| ShowToggleImage="false" AppendDataBoundItems="true" |
| DataSourceID="PropertyTypes" DataValueField="Id" DataTextField="Name" |
| AllowCustomText="false" SelectedValue='<%# Bind("Type.Id") %>'> |
| <Items> |
| <telerik:RadComboBoxItem Text="" /> |
| </Items> |
| </telerik:RadComboBox> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
Your demo "Combo In Grid" under "Application Scenarios" has this functionality except it only has in-line editing and not inserting or I would follow that.
Thanks,
Chris