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

Filtering shifts header causing misalignment

2 Answers 40 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Francisco Amador
Top achievements
Rank 1
Francisco Amador asked on 11 Mar 2011, 07:32 PM
I've been trying to add a filter to this treelistview but have had this extra header spacer added automatically. Unfortunately it only appears when I filter and it causes the header to no longer be aligned with the content. It thought it may have been the rowindicator, but even after turning it on and off it is still displayed when filtering.

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 12 Mar 2011, 05:05 PM
Hi Francisco,

Actually, this part of GridViewHeaderRow is called GridViewIndentCell. However, the behavior you experience is a bit strange and it is not the default one.
I have prepared an example for you following the structure from the attached picture and everything works as expected on my side. Please check the attached project and let me know how it differs from yours. 
 

All the best,
Vanya Pavlova
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Francisco Amador
Top achievements
Rank 1
answered on 13 Mar 2011, 02:08 AM
After some further running inspection of my code I have found the problem to be that I was attempting to group the TreeListView. That piece of code I had been using for filtering and grouping RadGridViews and had made it generic enough to work with GridViewDataControl. Since all my RadGridViews were working I had not tried to filter and group in this screen as well.

I have now added a check to make sure to not add a GroupDescriptor to the RadTreeListView. That has solved the display issue.
Tags
TreeListView
Asked by
Francisco Amador
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Francisco Amador
Top achievements
Rank 1
Share this question
or