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

[Solved] Duplicate elements do not show

4 Answers 121 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
AKROS
Top achievements
Rank 1
AKROS asked on 09 Jul 2013, 02:37 PM
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!

 

 

4 Answers, 1 is accepted

Sort by
0
Accepted
Yordanka
Telerik team
answered on 12 Jul 2013, 12:31 PM
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 >>
0
AKROS
Top achievements
Rank 1
answered on 30 Jul 2013, 07:58 AM
Any news regarding this bug?
It seems that the last internal build of yesterday does not include the fix...

Thanks
0
Yordanka
Telerik team
answered on 30 Jul 2013, 08:44 AM
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 >>
0
Nedyalko Nikolov
Telerik team
answered on 16 Aug 2013, 12:04 PM
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 >>
Tags
TreeListView
Asked by
AKROS
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
AKROS
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Share this question
or