Make Row Visibility Collapsed

2 posts, 0 answers
  1. Manishkumar
    Manishkumar avatar
    240 posts
    Member since:
    Feb 2009

    Posted 24 Oct 2011 Link to this post

    Hi,
    While i am trying to set the

    row.Visibility =

    Visibility.Collapsed;

     

    then blank spaces appears accross the row in my TreeListView. I do nt want to show the row based on my condition. How i will be able to accomplish that. Please help me.

    My requirement is if the row.Level = 3 and row does not have children then i do not need to show that row. My tree can be expanded upto 7th level.

    if

     

    (objBind.Level == 3 &&  objBind.Items.Count == 0)

     

    {

    row.Visibility =

    Visibility.Collapsed;

     

    row.Height = 0.0;

    }

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 24 Oct 2011 Link to this post

    Hi,

     Working directly with UI containers visibility is not recommended since this is used by the virtualization. You can use filtering instead at your data level. 

    Best wishes,
    Vlad
    the Telerik team

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

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top