Touch scrolling

10 posts, 1 answers
  1. Lowie
    Lowie avatar
    21 posts
    Member since:
    Apr 2013

    Posted 31 May 2013 Link to this post

    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
  2. Nick
    Admin
    Nick avatar
    593 posts

    Posted 31 May 2013 Link to this post

    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.

  3. Lowie
    Lowie avatar
    21 posts
    Member since:
    Apr 2013

    Posted 31 May 2013 Link to this post

    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
  4. Lowie
    Lowie avatar
    21 posts
    Member since:
    Apr 2013

    Posted 31 May 2013 Link to this post

    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
  5. Nick
    Admin
    Nick avatar
    593 posts

    Posted 31 May 2013 Link to this post

    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.

  6. Lowie
    Lowie avatar
    21 posts
    Member since:
    Apr 2013

    Posted 03 Jun 2013 Link to this post

    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
  7. Nick
    Admin
    Nick avatar
    593 posts

    Posted 04 Jun 2013 Link to this post

    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.

  8. Lowie
    Lowie avatar
    21 posts
    Member since:
    Apr 2013

    Posted 04 Jun 2013 Link to this post

    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
  9. Answer
    Nick
    Admin
    Nick avatar
    593 posts

    Posted 04 Jun 2013 Link to this post

    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.

  10. Lowie
    Lowie avatar
    21 posts
    Member since:
    Apr 2013

    Posted 04 Jun 2013 Link to this post

    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
Back to Top