Duplicate elements do not show

5 posts, 1 answers
  1. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 09 Jul 2013 Link to this post

    Hello everybody,

    I'm using the Silverlight Q2 2013 version and I'm trying to add two times the same instance of an object, something like this:

    public class Person
    {
        public string FirstName { get; set; }
     
        public List<Kid> Children { get; set; }
    }
     
    public class Kid
    {
        public string FirstName { get; set; }
    }

     

    And then:

    Kid kid1 = new Kid() { FirstName = "Kid" };
     
    List<Person> demos = new List<Person>()
                         {
                             new Person() { FirstName = "Person1", Children = new List<Kid>() {kid1, new Kid() {FirstName = "Kid12"}} },
                             new Person() { FirstName = "Person2", Children = new List<Kid>() {kid1, new Kid() {FirstName = "Kid22"}} },
                         };
     
    this.treeListView.ItemsSource = demos;

    Unfortunately, the object kid1 is only shown in Person2 and not Person1!

    Important remark: This was working fine with an older Version of Telerik (maybe it was Q1 2012, I don't remember).

    Any idea how to solve this?
    Thanks!

     

     

  2. Answer
    Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 12 Jul 2013 Link to this post

    Hello Nicolas,

    Thank you for the report.

    I was able to reproduce the problem and logged it as a bug. We will do our best to fix it with one of the next internal builds.

    I've updated your Telerik points.
     
    Regards,
    Yordanka
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 30 Jul 2013 Link to this post

    Any news regarding this bug?
    It seems that the last internal build of yesterday does not include the fix...

    Thanks
  5. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 30 Jul 2013 Link to this post

    Hello Nicolas,

    The issue is still in progress. I will raise its priority so we can provide a fix in one of the next internal builds.
    As a workaround, you can set GroupRenderMode="Nested".
     
    Regards,
    Yordanka
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 16 Aug 2013 Link to this post

    Hi,

    It seems that we have to make a significant change in the virtualizing logic for "Flat" render mode in order to support such scenario (with duplicated items (really equal items)). Unfortunately these changes will let you only to see such items but will result in some other issues like (no selection, no currency, no editing), also such change will hurt the performance of RadGridView in "Flat" render mode. So we decide to not support such scenario.

    Your option is either using "Nested" mode (be aware that selection, currency, editing, keyboard navigation may not work as expected) or create some wrappers for your items in order to make them unique (which is the recommended approach).

    Sorry for the inconvenience caused.

    Regards,
    Nedyalko Nikolov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
DevCraft banner