disable touch

6 posts, 0 answers
  1. Kineas
    Kineas avatar
    11 posts
    Member since:
    Apr 2011

    Posted 22 Sep 2013 Link to this post

    Been trying for a while to see what slows down the loading of some forms in my application.

    Eventually I just decided to make a bunch of radgrids show up in a simple application when i hit a button. I did that because in my initial form I have about 6 radgrids (they have very few rows each) and it bugs me to see how slow it's loading on an old computer.

    just so you understand what i did i made a user control with 6 of these inside and when i hit the button it added the control inside the grid of the mainwindow.

       <telerik1:RadGridView ShowGroupPanel="False"  telerik1:TouchManager.IsTouchHitTestVisible="False"  Grid.Column="2" Grid.Row="3" Name="radGridView1" IsEnabled="True" CanUserReorderColumns="False" IsReadOnly="True"<br>                                  RowIndicatorVisibility="Collapsed" DataLoadMode="Asynchronous" <br>                                  AutoGenerateColumns="False" IsFilteringAllowed="False"<br>                                  ItemsSource="{Binding Someth.Oth}"<br>                                  SelectedItem="{Binding OthSel}"<br>                                  CanUserInsertRows="False" CanUserDeleteRows="False" Grid.ColumnSpan="3" Margin="1,1,1,0"><br>            <telerik1:RadGridView.Columns><br>                <telerik1:GridViewDataColumn Header="Nume" DataMemberBinding="{Binding Person.Name}"  <br>                                                         Width="4*" TextWrapping="Wrap" IsReadOnly="True"/><br>                <telerik1:GridViewDataColumn Header="Prenume" DataMemberBinding="{Binding <span style="font-size: 14.44444465637207px;">Person</span><br>.SurName}"  <br>                                                         Width="4*" TextWrapping="Wrap" IsReadOnly="True"/><br>                <telerik1:GridViewDataColumn Header="Legitimatie" DataMemberBinding="{Binding <span style="font-size: 14.44444465637207px;">Person</span><br>.Badge}"  <br>                                                         Width="4*" TextWrapping="Wrap" IsReadOnly="True"/><br>            </telerik1:RadGridView.Columns><br>        </telerik1:RadGridView><br>

    anyway, after profiling with redgate i came to see that there was a big chunk used by telerik.windows.input.touch.touchmanager.registertouchableelement. Something about TouchIndicator.

    As you can see I already have telerik1:TouchManager.IsTouchHitTestVisible="False" . Did not do a thing.


    Basically i do not need touch in my application . At all. If the computer is powerful enough and they want to, sure, I'll enable it for them. But not if it takes so much performance from my app.

    Second thing that was showing up in the profile was the GridView.GridViewScrollViewer, the measureoveride. I don't use scroll either but I don't think it's related only to that (right?). As I looked in, most of it was spent on GridViewHeaderRow measureoverride. This is something I could also see with WPFPerf on my application and also in the test. Why is the header so consuming? In my application I don't even show it for some and it still eats up a lot.

    Thank you for any input.

  2. John
    John avatar
    6 posts
    Member since:
    Jul 2013

    Posted 23 Sep 2013 Link to this post

    Try with
    TouchManager.SetIsTouchHitTestVisible(Your_Control, false)
    method
  3. Kineas
    Kineas avatar
    11 posts
    Member since:
    Apr 2011

    Posted 23 Sep 2013 Link to this post

    Already did that. In the markup.

    Anyway, i tried placing a 
    new TouchIndicator();
    when my program starts so it doesn't load the xaml for it at the first loading of the form. It helps.

    I'm still having trouble though understanding why it takes so long to add 6 grids with 3 columns each. It takes 2 seconds to load. Also of all the other controls, the RadDateTimePicker is also quite slow to load, about 1/4th of the time necesarry for a grid.
  4. Nick
    Admin
    Nick avatar
    593 posts

    Posted 25 Sep 2013 Link to this post

    Hi Razvan,

    The touch support we provide is still very raw. We are working towards providing more controlable features to the developers so they can specify the behavior they want from a certain control. 
    We are going to look into this performance issue and resolve it in the shortest possible terms. 

    I will keep you posted in this thread! 

    Regards,
    Nik
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    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 >>
  5. Kineas
    Kineas avatar
    11 posts
    Member since:
    Apr 2011

    Posted 25 Sep 2013 Link to this post

    Thank you. Do you also have some feedback on the slow load of the header of the radgrid?
  6. Nick
    Admin
    Nick avatar
    593 posts

    Posted 30 Sep 2013 Link to this post

    Hello Razvan,

    The loading of the GridView elements is usually affected by some visual customizations. However, I am not able to say what goes wrong with certainty, judging only on the information in this thread. You can open a support ticket with a sample project where we can observe the actual problems and provide the necessary guidance to fix the problem.

    Hope this helps! 

    Regards,
    Nik
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    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 >>
Back to Top