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

CollectionEditor deletes added items

5 Answers 82 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Zberbang
Top achievements
Rank 2
Zberbang asked on 21 Mar 2014, 12:35 PM
Hello all,

I've encountered an undefined behaviour of CollectioEditor with 2014 Q1 and previous.
My data have 2 levels of nesting: Client -> List<Contracts> -> List<Option>.
Also I use custom template for CollectionEditor to set some properties of RadPropertyGrid for editing List<Option> (dimensions + visibilty).

How to reproduce the problem:
1. Use CollectionEditor for "Contracts" and add new Contract twice.
2. Select second Contract.
3. Use CollectionEditor for "Options" and add new Option.
4. Select first Contract
5. Select second Contract
6. Open CollectionEditor for "Options" ... ooops.. no option presents!

Problem occur even if I use original template from assembly.

The test project can be found here.

Best regards,
Zber

5 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 25 Mar 2014, 03:26 PM
Hi Zber,

Thank you for the feedback.

I was able to reproduce the problem you report. However the used approach is not quite recommended and that's why the behavior is wrong. If you would like to override the CollectionEditor template you should apply implicit themes. I updated the project and attached it for a reference. Let me know if you have additional questions.

Regards,
Yordanka
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Zberbang
Top achievements
Rank 2
answered on 26 Mar 2014, 05:44 AM
Hi Yordanka,

Thanks for clarification!
0
Zberbang
Top achievements
Rank 2
answered on 26 Mar 2014, 12:39 PM
Hi Yordanka,

Unfortunately implicit themes didn't help me.
For example I'm overriding CollectionEditor template to have NestedProperties visible in internal RadPropertyGrid as Didie recommended here.
What should I do?

I've update the project with CollectionEditorTemplate overriden - link.
0
Yordanka
Telerik team
answered on 27 Mar 2014, 02:35 PM
Hello Zber,

I reproduced the problem and will make some tests. I will contact you as soon as I have more information.

Regards,
Yordanka
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Yordanka
Telerik team
answered on 01 Apr 2014, 02:11 PM
Hi Zber,

I confirm the problem and I logged it as a bug so we can investigate it further. You can track its status from the corresponding Feedback item.

I've updated your Telerik points.

Regards,
Yordanka
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
PropertyGrid
Asked by
Zberbang
Top achievements
Rank 2
Answers by
Yordanka
Telerik team
Zberbang
Top achievements
Rank 2
Share this question
or