RadGrid InputManager "Editor cannot be initialized for column"

8 posts, 0 answers
  1. Dan Ware
    Dan Ware avatar
    17 posts
    Member since:
    Mar 2010

    Posted 02 Jul 2013 Link to this post

    Hi,

    I have followed one of your examples from a while ago which has been working in my website for some time.  I recently updated the Telerik AJAX controls to Q1-2013, but now the customer cannot add a record on one of the pages.

    I have found that the code-behind uses a subroutine to apply an "InputSetting" to the editable control, very similar to this example:

    http://www.telerik.com/help/aspnet-ajax/grid-linq-to-sql-manual-crud-operations.html

    The way to prevent the "Editor cannot be initialized for column" error is to simply not use the "SetupInputManager" subroutine.

    Obviously there was a breaking change made to the Telerik library at some point - what is the new way to replicate the functionality provided in the "SetupInputManager" subroutine (as shown in your examples)?

    Thanks in advance!
  2. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 05 Jul 2013 Link to this post

    Hello Dan,

    Based on the provided information it is hard to say what could be the reason for that behavior. Could you please post you aspx code with the related code behind, so we could give you a more straight forward solution? In the last several releases we did not introduced any breaking changes so could you please let me know which was your previous version of Telerik controls.

    Regards,
    Kostadin
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. jajanes
    jajanes avatar
    5 posts
    Member since:
    Sep 2006

    Posted 16 Sep 2013 Link to this post

    Same problem here - it occurred immediately after updating to 2013.2.717.40

    It's an automaticUpdate grid without autogenerated columns

    <telerik:RadGrid AllowAutomaticUpdates="true" DataSourceID="dsLogins" Width="100%" AutoGenerateColumns="False" runat="server"
    ID="gridLogins" AllowSorting="True" AllowPaging="True" Skin="Web20">
    <MasterTableView EditMode="EditForms" DataSourceID="dsLogins" DataKeyNames="LoginID">
    <Columns>
    <telerik:GridBoundColumn UniqueName="LastName" HeaderText="Last Name" DataField="LastName">
    </telerik:GridBoundColumn>
    <telerik:GridBoundColumn UniqueName="FirstName" HeaderText="First Name" DataField="FirstName">
    </telerik:GridBoundColumn>
    <telerik:GridBoundColumn UniqueName="Email" HeaderText="Email" DataField="Email">
    </telerik:GridBoundColumn>
    <telerik:GridCheckBoxColumn UniqueName="IsAdmin" HeaderText="Admin?" DataField="IsAdmin">
    </telerik:GridCheckBoxColumn>
    <telerik:GridCheckBoxColumn UniqueName="Active" HeaderText="Active?" DataField="IsActive">
    </telerik:GridCheckBoxColumn>
    <telerik:GridDateTimeColumn UniqueName="LastLogin" ReadOnly="true" HeaderText="Last Login" DataField="LastLogin">
    </telerik:GridDateTimeColumn>
    <telerik:GridEditCommandColumn HeaderText="" ButtonType="ImageButton" UpdateImageUrl="../App_Themes/default/icons/disk.png" UpdateText="Save Changes" EditImageUrl="../App_Themes/default/icons/application_edit.png" CancelImageUrl="../App_Themes/default/icons/application_delete.png" EditText="Edit" CancelText="Cancel"></telerik:GridEditCommandColumn>
    </Columns>
    <EditFormSettings>
    <EditColumn UniqueName="EditCommandColumn1">
    </EditColumn>
    </EditFormSettings>
    </MasterTableView>
    </telerik:RadGrid>

  4. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 19 Sep 2013 Link to this post

    Hi John,

    A colleague of mine has already answered you support ticket and I would ask you to continue the conversation with him there if any further assistance is needed.

    Regards,
    Kostadin
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  5. Gonzalo Contento
    Gonzalo Contento avatar
    5 posts
    Member since:
    Nov 2010

    Posted 30 Sep 2013 Link to this post

    Can someone hint at what was wrong? We're having the same issue.

    RadGrid that was working previously is now throwing errors. Very basic setup.
  6. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 03 Oct 2013 Link to this post

    Hello Gonzalo,

    I am quoting the answer of my colleague.
    "This error could occur if you are setting a column editor control ID in the code-behind (as shown in the following help article). If this is the case, please try removing the code where ID of the editor control is set and see if it solves the issue for you. In previous versions of our RadControls, the editor controls were without ID's, but in our latest versions an ID is given to every editor control and changing that ID would lead to the error you are receiving."

    Regards,
    Kostadin
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  7. Gonzalo Contento
    Gonzalo Contento avatar
    5 posts
    Member since:
    Nov 2010

    Posted 15 Oct 2013 Link to this post



    We found this gem in our source. Upon removal, the exception went away and the bug is fixed.

    editName.TextBoxControl.ID = "editName";

    Thank you Kostadin!

  8. Lokesh
    Lokesh avatar
    1 posts
    Member since:
    Apr 2012

    Posted 04 Jul 2018 in reply to Gonzalo Contento Link to this post

    Thanks to reply on your own question. it helped.
Back to Top