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

[Solved] Custom row style + row details

4 Answers 157 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Elena Kosinska
Top achievements
Rank 1
Elena Kosinska asked on 02 Dec 2010, 02:21 PM
I've tried to use a custom row style + row details at the same time, but GridView doesn't display row details if the row style is defined. (even if RowDetailsVisibilityMode="Visible")  
So both these properties, for example, RowStyle="{StaticResource AddressCard}" RowDetailsTemplate="{StaticResource AddressTemplate}" don't work at the same time for me.

How to fix it?

Thanks,
Elena

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 02 Dec 2010, 04:52 PM
Hello Elena,


We were able to reproduce the issue only when setting RowHeight property of RadGridView. If you do not set this property to an appropriate value RowStyle and RowDetailsTemplate would be synchronized.

If this is not the issue it could be great if you can send us a small application with your custom scenario. 

All the best,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Elena Kosinska
Top achievements
Rank 1
answered on 03 Dec 2010, 09:38 AM
no, I didn't set the RowHeight property.

Take a look at this sample, I've cut a custom scenario from my application.

Thanks, Elena
0
Elena Kosinska
Top achievements
Rank 1
answered on 06 Dec 2010, 09:36 AM
sorry to ask again, any news about this problem?

Thanks,
Elena
0
Vanya Pavlova
Telerik team
answered on 06 Dec 2010, 01:55 PM
Hello Elena,


Thank you for submitting your project. The problem is in the fact that you are creating your own custom Style, where the DetailsPresenter represents the GridViewRow's details, it should be custom too. If you want to keep synchronized custom GridViewRow style and custom RowDetails just create a style that follows the logic in the DataTemplate from your example and is targeted at DetailsPresenter and your custom row layout will be aware of it.


If you need any further assistance do not hesitate to contact us.


Best wishes,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Elena Kosinska
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Elena Kosinska
Top achievements
Rank 1
Share this question
or