Could not find the specified key "InsertText" or c

Posted by Community Admin on 04-Aug-2018 11:26

Could not find the specified key "InsertText" or class id "RadGrid.Main".

All Replies

Posted by Community Admin on 18-Dec-2010 00:00
Hi
I have created user control at backend part with RadGrid

 <telerik:RadGrid ID="RadGridList"  Width="100%" runat="server"
         DataSourceID="ObjectDataSource1"
         AllowAutomaticInserts="true" AllowAutomaticDeletes="true" AutoGenerateColumns="false"
         GridLines="Horizontal" >
    
        <ValidationSettings EnableValidation="false" />
        <MasterTableView AllowAutomaticInserts="true" DataKeyNames="Id" CommandItemDisplay="Top" Width="100%"  >
            <Columns>
                <telerik:GridTemplateColumn HeaderText="Product Name" UniqueName="ProductNameColumn">  
                <EditItemTemplate> 
                    <telerik:RadComboBox ID="RadComboBox1" AppendDataBoundItems="true" Height="200px" runat="server" 
                        EmptyMessage="Select a Product" 
                        EnableLoadOnDemand="true" 
                        ShowMoreResultsBox="true"
                        EnableVirtualScrolling="true" 
                        SelectedValue='<%# Bind("Id")%>'>  
                            <WebServiceSettings Method="GetProducts" Path="../../../Services/ProductService.asmx" />
                    </telerik:RadComboBox> 
                </EditItemTemplate> 
                <ItemTemplate> 
                    <%#Eval("Name")%> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn>
            <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                            ConfirmTitle="Delete" ButtonType="LinkButton" CommandName="Delete" Text="Delete"
                            UniqueName="DeleteColumn" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    InsertMethod="Insert" SelectMethod="Select" DeleteMethod="Delete" 
    TypeName="Products.ProductAccessoriesManager" >
        <InsertParameters>
            <asp:Parameter Name="Id" Type="String" />
        </InsertParameters>
        <DeleteParameters>
            <asp:Parameter Name="Id" Type="Object" />
        </DeleteParameters>
    </asp:ObjectDataSource>

After updating of Sitefinity 4 to 992 build when I click "Add New Record Button" causes exception
Could not find the specified key "InsertText" or class id "RadGrid.Main".

Telerik.Web.UI.dll version is 2010.3.1109.40 
Posted by Community Admin on 20-Dec-2010 00:00
Hi Mikhail,

This is a bug in Sitefinity. We logged the issue with ID 102724 for fixing. The problem is that the RadGrid is trying to get a resource from Telerik.Sitefinity.Resources assembly.
Currently the issue could be avoided with manual commands of the RadGrid

<EditColumn ButtonType="ImageButton" InsertText="Insert a new item" UpdateText="Update an item" UniqueName="EditCommandColumn1" CancelText="Cancel">


Greetings,
Ivan Dimitrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
This thread is closed