CollectionEditor deletes added items

6 posts, 0 answers
  1. Zberbang
    Zberbang avatar
    13 posts
    Member since:
    Oct 2013

    Posted 21 Mar 2014 Link to this post

    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

  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 25 Mar 2014 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Zberbang
    Zberbang avatar
    13 posts
    Member since:
    Oct 2013

    Posted 26 Mar 2014 in reply to Yordanka Link to this post

    Hi Yordanka,

    Thanks for clarification!
  5. Zberbang
    Zberbang avatar
    13 posts
    Member since:
    Oct 2013

    Posted 26 Mar 2014 in reply to Yordanka Link to this post

    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.
  6. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 27 Mar 2014 Link to this post

    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.

     
  7. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 01 Apr 2014 Link to this post

    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.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready