I am building a Grid using the Q1 2010 RadGrid control, and
using Template Form Update as my guide.
I have a Template edit form, and I'm having an issue when
trying to add a Telerik Grid Dropdown Column.
I am getting an error saying that the Grid Dropdown
Column is not a known element.
Below is a copy of my edit form template:
<telerik:RadGrid ID="RadGrid1" runat="server" CssClass="RadGrid" GridLines="None"
AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False"
ShowStatusBar="true" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
AllowAutomaticUpdates="True" DataSourceID="SqlDataSource1" OnItemDeleted="RadGrid1_ItemDeleted"
OnItemInserted="RadGrid1_ItemInserted" OnItemUpdated="RadGrid1_ItemUpdated" OnItemCommand="RadGrid1_ItemCommand"
>
<MasterTableView CommandItemDisplay="TopAndBottom" DataSourceID="SqlDataSource1" DataKeyNames="MCCLoadId">
<Columns>
<telerik:GridEditCommandColumn>
</telerik:GridEditCommandColumn>
<telerik:GridBoundColumn UniqueName="MCCNo" HeaderText="MCCNo" DataField="MCCNo">
<HeaderStyle ForeColor="Silver" ></HeaderStyle>
<ItemStyle ForeColor="Gray" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="MCC_Cmpt" HeaderText="MCC Compartment" UniqueName="MCC_Cmpt">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DeviceType_DeviceTypeId" HeaderText="Device Type" UniqueName="DeviceTypeId" >
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings EditFormType="Template">
<FormTemplate>
<table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none"
style="border-collapse: collapse; background: white;">
<tr class="EditFormHeader">
<td colspan="2" style="font-size:small">
<b>MCC Load Details</b>
</td>
</tr>
<tr>
<td>
<table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module">
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
MCC #:
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("MCCNo") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
MCC Section:
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("MCC_Sect") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
MCC Section Suffix:
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("MCC_Sect_Suffix") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
MCC Compartment:
</td>
<td>
<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("MCC_Cmpt") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
MCC Compartment Suffix:
</td>
<td>
<asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("MCC_Cmpt_Suffix") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
MCC Compartment Space Factor:
</td>
<td>
<asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("MCC_Cmpt_Space_Factor") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
MCC Compartment Connection:
</td>
<td>
<asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("MCC_Cmpt_Conn") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
MCC Short Circuit:
</td>
<td>
<asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("MCC_Short_Ckt_Prot") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
MCC Short Circuit Rating:
</td>
<td>
<asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("MCC_Short_Ckt_Rating") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
MCC Short Circuit Class:
</td>
<td>
<asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("MCC_Short_Ckt_Class") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td>
MCC Control Device:
</td>
<td>
<telerik:GridDropDownColumn DataField="DeviceType_DeviceTypeId" DataSourceID="SqlDataSource2"
HeaderText="DeviceTypes" ListTextField="DeviceTypeName" ListValueField="DeviceTypeId"
UniqueName="DeviceTypeId" ColumnEditorID="GridDropDownColumnEditor1">
</telerik:GridDropDownColumn>
</td>
</tr>
</table>
</td>
</tr>
</FormTemplate>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
Thanks,
Jason