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

Copy and paste loses everything

6 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
PortVista
Top achievements
Rank 2
PortVista asked on 11 Apr 2007, 05:44 PM
When I copy and paste most controls, usually the collection is lost, say in a combobox. Is this just a Visual Studio designer bug? Is there a way to re-assign the collection back or make a copy of it without having to spend hours re-creating it just because you wanted to move it somewhere else?

I also get javascript errors when using Telerik controls, especially the tabs -- they disappear on me a lot, and I need close and open the project again to see them. It's just impossible it seems to copy and paste the whole tab control without not only screwing up your entire project, but also losing all the tabs. It doesn't seem specific to Telerik though... it's like the VS designer is totally clueless. I make a backup of my project anytime I need to move something to another user control...

6 Answers, 1 is accepted

Sort by
0
PortVista
Top achievements
Rank 2
answered on 11 Apr 2007, 06:09 PM
This is one of the error messages
I can't seem to upload a pic or show it so here's a link:
http://www.portvista.com/media/error.jpg
0
Dimitar Kapitanov
Telerik team
answered on 16 Apr 2007, 02:22 PM
Hello Jason,
 
We are aware of the copy&paste issue and we will address it in one of the following service packs.

The errors you get are possibly because you are inserting items of types not suitable for the respective control. Basically the collection accepts all descendants of RadItem and there are is constraint logic implemented at this time.

Thank you for reporting this issue, we will fix it after the upcoming release next week.
 

Kind regards,
Dimitar Kapitanov
the telerik team

Instantly find answers to your questions at the new telerik Support Center
0
PortVista
Top achievements
Rank 2
answered on 02 May 2007, 01:30 PM
I'm still getting this error in my project at design time. I even deleted all references to IsSelected in my project.

http://www.portvista.com/media/error.jpg
0
Mike
Telerik team
answered on 03 May 2007, 07:42 AM
Hello Jason,

This error message appears because you have a TabItem declaration in the generated code on a form, with IsSelected property set to true that is not added to any RadTabStrip control on the form.
For example, part of the following from the designer generated code, might be missing:
this.radTabStrip1.Items.AddRange(new Telerik.WinControls.RadItem[] {
            this.tabItem1,
            this.tabItem2,
            this.tabItem3
            ... });

We are still unable to find the steps to reproduce this error, but we will add it to our issue list, to examine the possible reasons for this issue to appear.

Best wishes,
Mike
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
PortVista
Top achievements
Rank 2
answered on 04 May 2007, 07:38 PM
Well I still get the error. The addRange method is there is the designer, and there aren't any orphan tabItems. The only IsSelected property ever in my project is added automatically in the designer when you view the form in design view and select a tab. I'm using VB.
0
Mike
Telerik team
answered on 07 May 2007, 12:32 PM
Hello Jason,

If this problem persists you ca open a support ticket and send us sample code, that we can examine. This way we can be much more precise in our help for you.

Greetings,
Mike
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
PortVista
Top achievements
Rank 2
Answers by
PortVista
Top achievements
Rank 2
Dimitar Kapitanov
Telerik team
Mike
Telerik team
Share this question
or