More in this section

Forums / Bugs & Issues / Could not find the specified key "InsertText" or class id "RadGrid.Main".

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

2 posts, 0 answered
  1. Mikhail
    Mikhail avatar
    4 posts
    Registered:
    10 Dec 2008
    18 Dec 2010
    Link to this post
    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 
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Dec 2010
    Link to this post
    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
2 posts, 0 answered