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

Touch scrolling

9 Answers 387 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lowie
Top achievements
Rank 1
Lowie asked on 31 May 2013, 12:56 PM
Hi there

I've a usercontrol with a gridview that is part of a Radpane. Now I want to disable touch scrolling in a specific situation. 
Is it possible to disable scrolling with your finger on a touchdevice? I tried Scrollviewer.panningmode="None", but this did not work. I'm using the latest version of the WPF Trial.

My gridview XAML code:
<telerik:RadGridView Grid.Row="1"
HorizontalAlignment="Stretch"
ItemsSource="{Binding Articles}"
AutoGenerateColumns="False"
ShowGroupPanel="False"
RowIndicatorVisibility="Collapsed"
CanUserDeleteRows="False"
CanUserInsertRows="False"
CanUserReorderColumns="False"
GridLinesVisibility="None"
BorderBrush="{x:Null}"
AllowDrop="{Binding CanReOrderRows}"
IsReadOnly="True"
IsFilteringAllowed="False"
CanUserFreezeColumns="False"
SelectionMode="{Binding GridViewSelectionMode}"
SelectedItem="{Binding ArticleModel, Mode=TwoWay}"
b:RowReorderBehavior.IsEnabled="{Binding CanReOrderRows, Mode=TwoWay}"
telerik:ScrollingSettingsBehavior.IsEnabled="True"
telerik:ScrollingSettingsBehavior.ScrollAreaPadding="30"
telerik:ScrollingSettingsBehavior.ScrollStep="24"
telerik:ScrollingSettingsBehavior.ScrollStepTime="00:00:00.05">
                <i:Interaction.Behaviors>
                    <b:ScrollIntoViewBehavior />
                </i:Interaction.Behaviors>
                <telerik:RadGridView.Columns>
                    <telerik:GridViewColumn IsVisible="{Binding IsGridViewDragDropColumnVisible}">
                        <telerik:GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <Image>
                                        <Image.Style>
                                            <Style TargetType="{x:Type Image}">
                                                <Style.Triggers>
                                                    <DataTrigger Binding="{Binding IsTotal}"
                                                                 Value="False">
                                                        <Setter Property="Source"
                                                                Value="../Images/draggable-icon.gif" />
                                                    </DataTrigger>
                                                </Style.Triggers>
                                            </Style>
                                        </Image.Style>
                                    </Image>
                                </StackPanel>
                            </DataTemplate>
                        </telerik:GridViewColumn.CellTemplate>
                    </telerik:GridViewColumn>
                    <telerik:GridViewSelectColumn IsVisible="{Binding IsGridViewCheckBoxColumnVisible}" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Article.Name}"
                                                Header="Article"
                                                IsSortable="False"
                                                Width="*" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Article.Price, Converter={StaticResource ZeroPriceConverter}}"
                                                Header="ArticlePrice"
                                                IsSortable="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Count}"
                                                Header="Count"
                                                IsSortable="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding TotalPrice}"
                                                Header="Total"
                                                IsSortable="False" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>


Thanks in advance!

Greetings
Lowie

9 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 31 May 2013, 01:11 PM
Hello Lowie,

You can do that by setting the TouchManager.IsTouchHitTestVisible to false on the GridView.

Hope this helps! 

Regards,
Nik
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Lowie
Top achievements
Rank 1
answered on 31 May 2013, 01:14 PM
Hi Nik

TouchManager.IsTouchHitTestVisible is not available on the gridview. Neither in the telerik namespace (telerik:TouchManager...). I tried this before, but I could not set it on the gridview. 
I have references to: Controls, Data, Docking, Navigation, Input and Gridview.

Greetings
Lowie
0
Lowie
Top achievements
Rank 1
answered on 31 May 2013, 01:19 PM
Hi Nik

TouchManager.IsTouchHitTestVisible is not available on the gridview. Neither in the telerik namespace (telerik:TouchManager...). I tried this before, but I could not set it on the gridview. 
I have references to:
  • Controls;
  • Data;
  • Docking;
  • Navigation;
  • Input;
  • Gridview.

Greetings
Lowie
0
Nick
Telerik team
answered on 31 May 2013, 02:34 PM
Hi Lowie,

It appears the version you are using is a bit old. May I ask you to try it out with our latest binaries? 

Regards,
Nik
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Lowie
Top achievements
Rank 1
answered on 03 Jun 2013, 07:06 AM
Hi Nik

I downloaded and installed the latest version that I can download (3 april, for .NET 4.5 - 2013.1.403.45) and it still isn't showing. I've to mention that some while ago I could see the Touchmanager in Intellisense.

EDIT: Ok, it works. It is possible to set the TouchManager.IsTouchHitTestVisible. Curiously, Intellisense doesn't show it.

Greetings
Lowie
0
Nick
Telerik team
answered on 04 Jun 2013, 10:52 AM
Hello Lowie,  

That seems strange. The TouchManager was made public for our Q1 service pack so you should be able to access it without a problem. It is located in the Telerik.Windows.Input.Touch namespace. Can you try accessing it through there?

If the problem persists, you can check your global assembly cache for any outdated assemblies that might be referenced instead of the new ones.

Hope this helps!  

Regards,
Nik
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Lowie
Top achievements
Rank 1
answered on 04 Jun 2013, 11:03 AM
Hi Nik

I can access TouchManager in my code-behind, but not in my XAML code. 
And I have no reference to Telerik.Windows.Input, and I can't add it. I do have Telerik.Windows.Control.Input as a reference.

Greetings
Lowie
0
Accepted
Nick
Telerik team
answered on 04 Jun 2013, 12:31 PM
Hi Lowie,

The Control is located in the Telerik.Windows.Controls assembly, so you don't need a reference to the Input one. Since you cannot see the TouchManager in the XAML intellisense, may I ask you to set 
telerik:TouchManager.IsTouchHitTestVisible="False"? The project should compile. As to why it is not visible in the XAML intellisense, we are going to investigate the matter further. 

We are sorry for any inconvenience caused!

Regards,
Nik
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Lowie
Top achievements
Rank 1
answered on 04 Jun 2013, 12:33 PM
Hi Nik

As I mentioned in my last post yesterday, I already did that. And my project did compile.
Thanks for all the help!

Greetings
Lowie
Tags
GridView
Asked by
Lowie
Top achievements
Rank 1
Answers by
Nick
Telerik team
Lowie
Top achievements
Rank 1
Share this question
or