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

Intermittent issue with TabStrip controls 'error creating control'

2 Answers 112 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Cholo
Top achievements
Rank 2
Cholo asked on 26 Apr 2016, 10:03 AM

Hi everyone,

I've been getting an intermittent issue when  adding or using the controls for . 

Here's what it looks like:

http://imgur.com/DYhXzNy

error creating control - :RadTabStrip Duplicate component name 'RadTabStrip1'. Component names must be unique and case-insensitive.

What done:

Restarted VS
Uninstalled and reinstalled AJAX controls
Copied the Telerik.Web.UI bin to my project's bin directory
All assemblies in .config matches the current version of BIN working on.

However, still getting this issue more frequent than usual. It works again after clicking on the smart tag a couple of times or after restarting VS. recently, had to keep on updating the BIN files and restart VS again to make it work. Also tried to clear VS cache but it keeps on happening. You guys have other suggestion on how can permanently resolve this issue?

Thanks,

C

2 Answers, 1 is accepted

Sort by
0
Cholo
Top achievements
Rank 2
answered on 27 Apr 2016, 01:01 AM

Update:

It happened again and seems to happen try to follow the hierarchy w templates demo and do the following

1. Created a grid and included a tag

2. made a  inside the tag

3. placed one tab and added a (used the smart tags at this point)

4. added a  control. even added the placeholder tag.

5. Here's what made after the <LayoutTemplate> tag

<telerik:RadMultiPage ID="RadMultiPage1" runat="server">
                        <telerik:RadPageView ID="RadPageView1" runat="server">
                            <telerik:RadListView ID="RadListView1" runat="server" ItemPlaceholderID="PlaceHolder1" DataKeyNames="JobOrderIndex" DataSourceID="SqlDataSource20">
                                <LayoutTemplate>
                                    <div>
                                        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
                                    </div>
                                </LayoutTemplate>
                                <ItemTemplate>
                                    <table>
                                        <tr>
                                            <td><i>Job Order No.</i></td>
                                            <td>
                                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("JobOrderNumber", "{0}") %>'></asp:Label>
                                            </td>
                                            <th>Status</th>
                                            <th>
                                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("JobOrderStatus", "{0}") %>'></asp:Label>
                                            </th>
                                        </tr>
                                        <tr>
                                            <td>Plate Number</td>
                                            <td>
                                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("ProfitCenter", "{0}") %>'></asp:Label>
                                            </td>
                                            <td>Job Type</td>
                                            <td>
                                                <asp:Label ID="Label5" runat="server" Text='<%# Eval("JobType", "{0}") %>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Job Order Date</td>
                                            <td>
                                                <asp:Label ID="Label4" runat="server" Text='<%# Eval("JobOrderDate", "{0:d}") %>'></asp:Label>
                                            </td>
                                            <td>Created By</td>
                                            <td>
                                                <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Problem Description</td>
                                            <td colspan="3">
                                                <asp:Label ID="Label7" runat="server" Text='<%# Eval("ProblemDescription", "{0}") %>'></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </telerik:RadListView>

So, noticed that the error occurs as soon as place the source for the RadListView control and certain other controls or smart tags for the grid or the tab will not show up.

If you notice that not doing anything right (which is most of the time) please let me know and would appreciate the wisdom you can share with me so it can be the Telerik master race ought to be.

 

Thanks again,

C

0
Veselin Tsvetanov
Telerik team
answered on 29 Apr 2016, 06:40 AM
Hello Cholo,

Attached you will find a sample web-page implementing your scenario, which uses Northwind as DataSource db. On our side we were unable to reproduce the issue observed. 

However, as the error says that you have two controls with the same ID, there are several things that you could check:
- Make sure that you don't have on your page another control with the name "RadTabStrip1";
- If the page in question is a content page, make sure you don't have another control with the same name on your Master page;
- If the page is a User control, make sure you don't use that user control on a page that contains control with the above name.

If none of the above helps, it could be also useful to know the version of the VisualStudio you are using. Moreover, if you notice any differences within the implementation sent, compared to your page, please point them out.

Regards,
Veselin Tsvetanov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
TabStrip
Asked by
Cholo
Top achievements
Rank 2
Answers by
Cholo
Top achievements
Rank 2
Veselin Tsvetanov
Telerik team
Share this question
or