RadTreeView virtualization - display that item is loading

10 posts, 1 answers
  1. Tomáš Čeleda
    Tomáš Čeleda avatar
    15 posts
    Member since:
    Sep 2009

    Posted 27 Mar 2011 Link to this post

    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
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 31 Mar 2011 Link to this post

    Hello,

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

    Kind regards,
    Vlad
    the Telerik team
  3. DevCraft banner
  4. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 31 Mar 2011 Link to this post

    Hello,

    Just a quick update. 

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

    All the best,
    Vlad
    the Telerik team
  5. Tomáš Čeleda
    Tomáš Čeleda avatar
    15 posts
    Member since:
    Sep 2009

    Posted 02 Apr 2011 Link to this post

    Hello Vlad,
    thank you for your sample solution, it has solved my problem.

    Regards,
    Tomas Celeda
  6. ss
    ss avatar
    50 posts
    Member since:
    Jun 2010

    Posted 02 Sep 2011 Link to this post

    Hello,

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

    Thank you very much.
  7. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 03 Sep 2011 Link to this post

    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 >>

  8. ss
    ss avatar
    50 posts
    Member since:
    Jun 2010

    Posted 14 Sep 2011 Link to this post

    Thank you but I need to display this information over all cells within row. Is it possible? 
  9. ss
    ss avatar
    50 posts
    Member since:
    Jun 2010

    Posted 20 Sep 2011 Link to this post

    Can you please help me? I cant find solution. I need to show row loading info. Thank you.
  10. ss
    ss avatar
    50 posts
    Member since:
    Jun 2010

    Posted 17 Oct 2011 Link to this post

    Hello Telerik team,
      
    can you please help me? I cant find solution. 

     
  11. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 19 Oct 2011 Link to this post

    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 >>

Back to Top
DevCraft banner