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

RadGridView Scroll to top Problem

1 Answer 105 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jean-Philippe Mailhot
Top achievements
Rank 1
Jean-Philippe Mailhot asked on 22 Dec 2009, 08:58 PM
Hi,
here's my issue.

I have simple Radgriew.  I want to be able to open a edit window for each row.  So I added a image button on each rowdetail.
The problem is, one out of 3 time (approx), when I click on the button, the grid reset the scroll  to the top and doesn't fire the 
imgEdit_MouseLeftButtonUp event.
Can you help me !!!:)


 

 

<DataTemplate x:Key="GridDetailTemplate">

 

 

 

<Grid Background="{StaticResource TitleBackground}" >

 

 

 

 

 

<Image x:Name="imgEdit" MouseLeftButtonUp="imgEdit_MouseLeftButtonUp" Visibility="Visible" HorizontalAlignment="Left" VerticalAlignment="Top"

 

 

Height="16" Width="16" Source="/Images/Edit.png" Stretch="Fill">

 

</Grid>


<

 

controls:RadGridView Name="radGridView" ItemsSource="{Binding CustomItems}" Margin="5 0 0 0" CanUserFreezeColumns="False"

 

 

AutoGenerateColumns="False" IsFilteringAllowed="False"

 

 

 

 

IsReadOnly="True"

 

 

RowDetailsVisibilityMode="VisibleWhenSelected"

 

 

RowDetailsTemplate="{StaticResource GridDetailTemplate}"

 

 

HorizontalAlignment="Left"

 

 

RowIndicatorVisibility="Collapsed"

 

 

ShowGroupPanel="False" ScrollMode="RealTime"

 

 

Style="{StaticResource MyGridViewStyle}">

 

 

 

 

<controls:RadGridView.Columns>

 

 

 

<controls:GridViewImageColumn IsGroupable="False" HeaderCellStyle="{StaticResource MyHeaderCellStyle}" IsSortable="False" DataMemberBinding="{Binding Converter={StaticResource CustomizableTypeImageConverter}}" Width="35" />
</controls:RadGridView.Columns>

 

 

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 28 Dec 2009, 09:20 AM
Hi Jean-Philippe Mailhot,

I have prepared a similar demo project in my blog post How To: Display RadGridView Row Details with RadWindow for Silverlight.

Alternatively, you can show row details in a tool-tip if you find it more attractive. I have explained how to do this in the blog post How To: Tooltip Row Details with RadGridView for Silverlight.

You might want to use the built-in GridViewToggleRowDetailsColumn as demosntrated in this online example.

Please, examine these resources carefully. I hope this helps.

Sincerely yours,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Menu
Asked by
Jean-Philippe Mailhot
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or