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

Make Row Visibility Collapsed

1 Answer 91 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Manishkumar
Top achievements
Rank 1
Manishkumar asked on 24 Oct 2011, 02:23 PM
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;

}

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Oct 2011, 02:33 PM
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 >>

Tags
TreeListView
Asked by
Manishkumar
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or