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

RadTreeView virtualization - display that item is loading

9 Answers 125 Views
Data Virtualization
This is a migrated thread and some comments may be shown as answers.
Tomáš Čeleda
Top achievements
Rank 2
Tomáš Čeleda asked on 27 Mar 2011, 07:53 PM
Hello,

I'm using RadTreeView bound to VirtualQueryableCollectionView. I would like to have a special design of items that are currently loading. I have tried this binding (assuming that items still not loaded are being returned as nulls from VirtualQueryableCollectionView collection):

<ControlTemplate x:Key="LocalAlbumSearchResultTemplate" TargetType="telerik:RadTreeViewItem">
<Grid x:Name="RootElement" Visibility="{Binding BindsDirectlyToSource=True, Converter={StaticResource NullToInvisibilityConverter}}"
...

I wanted this grid to be visible only if the item is loaded. I'm probably missing something here, because the binding does not work and the converter is never called. Any ideas?

Thank you
Best regards,
Tomas Celeda

9 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 31 Mar 2011, 08:28 AM
Hello,

 Can you clarify where exactly you've set this template? Is it assigned from a redefined style? 

Kind regards,
Vlad
the Telerik team
0
Accepted
Vlad
Telerik team
answered on 31 Mar 2011, 08:42 AM
Hello,

Just a quick update. 

I've attached small demo application demonstrating how to achieve something similar.  

All the best,
Vlad
the Telerik team
0
Tomáš Čeleda
Top achievements
Rank 2
answered on 02 Apr 2011, 10:11 AM
Hello Vlad,
thank you for your sample solution, it has solved my problem.

Regards,
Tomas Celeda
0
ss
Top achievements
Rank 1
answered on 02 Sep 2011, 09:20 AM
Hello,

please I need same functionality for RadGridView. Can you please help me?

Thank you very much.
0
Maya
Telerik team
answered on 03 Sep 2011, 07:36 AM
Hi,

You may use the same idea and define a grid as follows:
<telerik:RadGridView ItemsSource="{Binding}" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ID }" >
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding ID,Converter={StaticResource converter}}" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

 

Greetings,
Maya
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
ss
Top achievements
Rank 1
answered on 14 Sep 2011, 02:22 PM
Thank you but I need to display this information over all cells within row. Is it possible? 
0
ss
Top achievements
Rank 1
answered on 20 Sep 2011, 05:00 PM
Can you please help me? I cant find solution. I need to show row loading info. Thank you.
0
ss
Top achievements
Rank 1
answered on 17 Oct 2011, 07:47 AM
Hello Telerik team,
  
can you please help me? I cant find solution. 

 
0
Maya
Telerik team
answered on 19 Oct 2011, 09:10 AM
Hi,

You can try to implement the same idea with the converter for all your columns.  

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Data Virtualization
Asked by
Tomáš Čeleda
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Tomáš Čeleda
Top achievements
Rank 2
ss
Top achievements
Rank 1
Maya
Telerik team
Share this question
or