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

disable touch

5 Answers 439 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kineas
Top achievements
Rank 1
Kineas asked on 22 Sep 2013, 06:52 PM
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.

5 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 23 Sep 2013, 09:03 AM
Try with
TouchManager.SetIsTouchHitTestVisible(Your_Control, false)
method
0
Kineas
Top achievements
Rank 1
answered on 23 Sep 2013, 12:49 PM
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.
0
Nick
Telerik team
answered on 25 Sep 2013, 01:02 PM
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 >>
0
Kineas
Top achievements
Rank 1
answered on 25 Sep 2013, 06:43 PM
Thank you. Do you also have some feedback on the slow load of the header of the radgrid?
0
Nick
Telerik team
answered on 30 Sep 2013, 08:59 AM
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 >>
Tags
GridView
Asked by
Kineas
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Kineas
Top achievements
Rank 1
Nick
Telerik team
Share this question
or