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

bug with EnableRowVirtualization ?

2 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 2
Edward asked on 31 Jul 2013, 10:17 AM

Hi guys,

I've got a weird problem:

When EnableRowVirtualization = true 

I have a grid with lots of rows like > 100 and I click on the first 10 rows or so the click event of the templated checkbox is handled perfectly. When I scroll down and click again on the checkbox, the click event is not fired.


When EnableRowVirtualization = false

Everything just works.

I hope you can help! (using build: 2013.2.611.1050)


Greetings Edward


<
telerik:GridViewDataColumn UniqueName="checkColumn" IsReadOnly="True">
                            <telerik:GridViewDataColumn.Header>
                                <CheckBox x:Name="chkSelectAll" Margin="0" Padding="0" VerticalAlignment="Center" IsChecked="True" HorizontalAlignment="Center" Click="ToggleCheckBoxItemsClick"/>
                            </telerik:GridViewDataColumn.Header>
                            <telerik:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <CheckBox Content="" IsChecked="{Binding Mode=TwoWay, Path=Checked}" Click="ChkDetailItemClick"  VerticalAlignment="Center" HorizontalAlignment="Center" />
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate>
                        </telerik:GridViewDataColumn>





2 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 02 Aug 2013, 02:59 PM
Hi Edward,

I tried to reproduce the issue using the provided details but I was not able to. Attached you can find the project used for the test. Are you able to get the problem on it?

Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Edward
Top achievements
Rank 2
answered on 05 Aug 2013, 09:36 AM
Hi Vera

Yes, I see that your example just works.

After extra investigation it appears it is not a click issue but a 'going in edit mode' thing.

Anyway after the change (EditTriggers="CellClick") below our software also works.

Thanks!

<telerik:GridViewDataColumn  UniqueName="checkColumn" IsReadOnly="True" EditTriggers="CellClick">
    <telerik:GridViewDataColumn.Header>
        <CheckBox x:Name="chkSelectAll" Margin="0" Padding="0" VerticalAlignment="Center" IsChecked="True" HorizontalAlignment="Center" Click="ToggleCheckBoxItemsClick"/>
    </telerik:GridViewDataColumn.Header>
 
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <CheckBox Content="" IsChecked="{Binding Mode=TwoWay, Path=Checked}" Click="ChkDetailItemClick"  VerticalAlignment="Center" HorizontalAlignment="Center" />
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

Tags
GridView
Asked by
Edward
Top achievements
Rank 2
Answers by
Vera
Telerik team
Edward
Top achievements
Rank 2
Share this question
or