This is a migrated thread and some comments may be shown as answers.

RadGrid InputManager "Editor cannot be initialized for column"

7 Answers 626 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan Ware
Top achievements
Rank 1
Dan Ware asked on 02 Jul 2013, 10:15 AM
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!

7 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 05 Jul 2013, 07:05 AM
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.
0
jajanes
Top achievements
Rank 1
answered on 16 Sep 2013, 05:40 PM
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>

0
Kostadin
Telerik team
answered on 19 Sep 2013, 01:47 PM
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.
0
Gonzalo Contento
Top achievements
Rank 1
answered on 30 Sep 2013, 02:19 PM
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.
0
Kostadin
Telerik team
answered on 03 Oct 2013, 07:25 AM
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.
0
Gonzalo Contento
Top achievements
Rank 1
answered on 15 Oct 2013, 02:35 PM


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!

0
Lokesh
Top achievements
Rank 2
answered on 04 Jul 2018, 12:25 PM
Thanks to reply on your own question. it helped.
Tags
Grid
Asked by
Dan Ware
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
jajanes
Top achievements
Rank 1
Gonzalo Contento
Top achievements
Rank 1
Lokesh
Top achievements
Rank 2
Share this question
or