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

Child node before the Parent Node (sometime)

7 Answers 144 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Lagrange
Top achievements
Rank 1
Lagrange asked on 07 Sep 2010, 09:02 AM
Hi,

I'm trying the new RadControls for Silverlight Q2 2010 SP1, and i'm facing problems with the TreeListView.

The first node with childs display fine, but the second one and others after do not : the child is before the parent (understand : over)
I've tested with multiple datasource, same problem.

The Tree only have two depth level.
See screenshot for detail.

Is it a known bug ?

Thanks.

7 Answers, 1 is accepted

Sort by
0
Lagrange
Top achievements
Rank 1
answered on 07 Sep 2010, 09:06 AM

After one test, I suspect the setting of "row.IsExpanded = true" code, in the List_RowLoaded event :

This work fine when commenting the row.IsExpanded as below.

 

 

private void RGVList_RowLoaded(object sender, RowLoadedEventArgs e)
         {
             GridViewRow row = e.Row as GridViewRow;
             DocumentItem doc = e.DataElement as DocumentItem;
             if (row != null && doc != null)
             {
                 /*row.IsExpanded = */row.IsExpandable = doc.ChildDocuments.Count > 0;
                  
             }
         }


Thanks for further fix !

 

 

0
Pavel Pavlov
Telerik team
answered on 07 Sep 2010, 01:33 PM
Hello Lagrange,

We had addressed a similar bug in the latest internal build .
It should be available for download in your account. Please give the fresh dlls a try and let me know if there is still a problem .

Regards,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lagrange
Top achievements
Rank 1
answered on 07 Sep 2010, 01:52 PM
Hi,

Just tested with this available build : 2010.2.903.1040 : 00795RadControls_for_Silverlight_4_2010_2_0903_DEV.zip

Same issue.


(Tested with multiple browsers to avoid library caching, confirmed by RGVList.GetType().Assembly.GetName().Version.ToString();)

Thanks for your answer anyway.

Cordially,
0
Pavel Pavlov
Telerik team
answered on 08 Sep 2010, 12:04 PM
Hi Lagrange,

Thank you for your cooperation ! I am updating your Telerik points. It appears to be another bug .
Is it possible for you to paste me a bit more code - the one you use to populate the TreeListView, so I could try resemble the problem here with a small sample app.

Having this I will try to provide a fix for you the very next internal build (the next Friday) .

Any instructions on how to achieve the situation shown in your screenshot would be also appreciated.

Regards,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lagrange
Top achievements
Rank 1
answered on 08 Sep 2010, 01:17 PM
http://echtelion.info/genapi/TelerikTreeViewListBugAPp.zip

Another precision about the issue :
This occurs only at first rendering. Understand if you scroll down to hide the matching row, then scroll up to bring it into view, the render is fine.

This is a "button app". Just run it.
For background : a root list of ObjectModel { int ObjectID, string ObjectTitle, List<ObjectModel> Childs }
Every 10 items, the next one is added as a child of the last item, and not in the root collection.
The hierarchy descriptor is in xaml, in the RadTreeListView declaration
<telerik:RadTreeListView.ChildTableDefinitions>
        <telerik:TreeListViewTableDefinition ItemsSource="{Binding Childs}" />
</telerik:RadTreeListView.ChildTableDefinitions>

Thanks
0
Lagrange
Top achievements
Rank 1
answered on 13 Sep 2010, 04:57 PM
Hi,

I've updated the above link to show you two additional bugs :

- Clipping issue when using bold/semibold text, on columns having near the good size
- Mouse click events not fired on rows. See mainpage.xaml.cs line42, and mainpage.xaml line 13, and their related events.

For the original bug, it may be irrelevant : not setting programmatic isExpanded and isExpandable didn't change the behavior : the row is well expanded. I writes this code for the GridView, but is irrelevant for TreeListView.

Unfortunately, I've sometime other rendering issues, maybe caused by row virtualization : sometime, a row look expendable (ie,got the triangle), while isn't. Scrolling up and down make the triangle disappear. This appear very randomly, but more often with 2 expendables rows near the top, and no one after in a 100rows collection.


Best Regards,
Romain Lagrange
0
Pavel Pavlov
Telerik team
answered on 14 Sep 2010, 12:39 PM
Hello Lagrange,

Thank you for the detailed information and the repro app provided.  Such valuable feedback is always appreciated. I am updating your Telerik points (again) .

We are currently investigating the problems and will try to rpovide a fix as soon as possible. I am leaving this thread open , so I could keep you informed about the status.


Sincerely yours,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeListView
Asked by
Lagrange
Top achievements
Rank 1
Answers by
Lagrange
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or