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

row visibility do not work anymore

3 Answers 59 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Adrian Pay
Top achievements
Rank 1
Adrian Pay asked on 27 Apr 2010, 03:53 AM
before upgrading to SL4 april 22 build. we have an event handler for the RowLoaded of our RadGridView that do this.

e.Row.Visibility = Collapsed

this will hide the row completely.

but in the new build - the row turns into WHITE.  it is hidden but the space that it consumed is still visible.
any ideas?

3 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 27 Apr 2010, 02:24 PM
Hi Adrian Pay,

Could you give us more details about your scenario or send a sample project for reference?

Best wishes,
Yordanka
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jason Maronge
Top achievements
Rank 1
answered on 16 Feb 2012, 10:59 PM
I am having the same issue with the Q1 2012 SL5 release.  Not sure if it existed before or not, I just implemented this but when I set a row to visibility = collasped it just draws a white line instead of the cells. 

I am setting it in the RowLoaded event.  You will see from the picture that the 2 record is missing and only showing the white space.

0
Maya
Telerik team
answered on 17 Feb 2012, 08:06 AM
Hello Adrian,

This would be the expected behavior since you are working with the visibility of the row. It is definitely not recommended to work with visual elements and their properties of a virtualized control (such as RadGridView, RadTreeListView, etc). Please refer to our online documentation for a reference.
I would recommend you in this case to work with the Items collection of the grid and remove/ add items there. Thus the corresponding row will be removed as well and no such black white spaces will be left. 

Kind regards,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Adrian Pay
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Jason Maronge
Top achievements
Rank 1
Maya
Telerik team
Share this question
or