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

Grid RowDetail Visibility Bug When Row Styled

5 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Reuben Russell
Top achievements
Rank 1
Reuben Russell asked on 07 May 2010, 06:14 PM
My team ran into an issue this week with Visibility of a RowDetail on a RadDataGrid when you apply a row style.  Here is how to reproduce and to fix.  This is only a problem if you are wanting to make the row detials all visible and have a custom row style.

- Control Setup
Make a RadGridView
Set RowDetailsVisibilityMode="Visible"
Add a DataContext to provide a ItemSource (my test had hand made columns via code, but I think it this can be seen with autogenerated as well)
Add a RowDetail content (in my testing I just had a static TextBlock with "Test" in the text value)

- If you render that control in an app you will see the RowDetail correctly

Use blend to Copy the RowStyle

- Now if you render that control, you will see any row detail secitons until you scroll the grid down

The only way around this issue is to go to the DetailsPresenter in the control template and remove the Visibility setting.  This will make it so the style being appied after it first renders from hiding the RowDetails.

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 11 May 2010, 10:20 AM
Hello Reuben Russell,

We have created a sample application based on your description, but unfortunately we could not get the behavior that you said you are experiencing. Note that we have not changed anything besides one color in the row style. Could you please take a look at the sample application and tell us what is wrong. How can we get what you are getting? When we scroll up and down absolutely all row details are visible as they should be. We have not tampered with the DetailsPresenter visibility, but left it as it was originally.

We are looking forward to hearing from you.

Regards,
Ross
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
Reuben Russell
Top achievements
Rank 1
answered on 26 May 2010, 08:30 PM
I have modified the project to produce the error but it is larger then 3 meg and a zip so I can not post it in this thread.  How should I get it to you?
0
Vlad
Telerik team
answered on 27 May 2010, 06:57 AM
Hello,

Please open support ticket and attach the project.

Greetings,
Vlad
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
Reuben Russell
Top achievements
Rank 1
answered on 27 May 2010, 02:45 PM
Ticket 313903 submitted
0
Rossen Hristov
Telerik team
answered on 28 May 2010, 10:15 AM
Hello Reuben Russell,

We have spent a whole day debugging this weird issue. Finally we found out what is causing this.

As it truns out Microsoft have introduced a breaking change in Silverlight 4.

Here is what to do in order to resolve the issue:

1. Your app should target SL4 (it already does so).
2. You should use Telerik's Silverlight 4 assemblies from the Latest Internal Build (v. 2010.1.521.1040)
3. Move the Visibility property of the DetailsPresenter before the DetailsProvider like this:

<Telerik_Windows_Controls_GridView:DetailsPresenter
    x:Name="PART_DetailsPresenter"
    Grid.ColumnSpan="2"
    Grid.Column="2"
    Visibility="Collapsed"
    DetailsProvider="{TemplateBinding DetailsProvider}"
    Grid.Row="1"
    telerik:StyleManager.Theme="{StaticResource Theme}"
    />

We will do the same in our source code and will workaround this SL4 issue for the next build.

I have updated your sample project with our Latest Internal Build assemblies for Silverlight 4 (TRIAL version). You can replace the dll's with the licensed version after you get it from your Client.NET.

Please, excuse us for the inconvenience. We will contact Microsoft immediately about this and we will then hope that they will resolve it for a Service Pack or for Silverlight 5.

Regards,
Ross
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.
Tags
GridView
Asked by
Reuben Russell
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Reuben Russell
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or