This question is locked. New answers and comments are not allowed.
Hi,
In the CellEditTemplate I have autocomplete textboxes with multiple bindings (ItemsSource,IsDropDownOpen,Text) and in the CellTemplate I have a simple TextBlock which shows the bound Text value.
I assume this improves the performance of the Telerik Grid, please correct me if this assumption is wrong.
I am trying to improve the performance of the Grid.
1) Use Cell & CellEdit Templates to reduce use of complex controls and multiple bindings unless a row is being updated
2) Set column and row virtualisation to false (we don't have that many rows or columns and that improved scrolling performance greatly).
3) Move DataTemplates into UserControl.Resources instead of inline
4) Look to avoid the use of usercontrols within the row.
5) Use GridViewColumn instead of GridViewDataColumn (each control has it's binding setup within the datatemplate and we are currently not using sorting/grouping etc) as a base class of my custom column (although I noticed that I can no longer switch to edit mode by setting focus to a cell and typing.....I have to set focus to the row/cell and then click a second time to enter it......is there an easy way of porting that behaviour to my custom column?).
6) Set the details view visibility to collapsed............Is there a way of triggering the details view to show from the item it is bound to (each row is bound to a ViewModel)? I had it always visible and a stackpanel within it that was collapsed and made visible as when needed....although when I added lots of rows the details row would sometimes appear as a thin white line on some of the rows).
7) Update to the latest Telerik assemblies.
I also stripped all custom styles.......when I had them enabled it seemed to add a few Mb to memory every time I added a row :S (at the moment the addition of a row adds 200k-600k) part of this is the viewmodel being setup but it is strange that rows would appear to add so much. Now I'll be adding styles back one at a time to see which is the main culprit.
Any recommendations on how to improve performance. It seems that scrolling through the rows with the arrow keys causes CPU usage to jump quite a bit as well.
Thanks,
John
In the CellEditTemplate I have autocomplete textboxes with multiple bindings (ItemsSource,IsDropDownOpen,Text) and in the CellTemplate I have a simple TextBlock which shows the bound Text value.
I assume this improves the performance of the Telerik Grid, please correct me if this assumption is wrong.
I am trying to improve the performance of the Grid.
1) Use Cell & CellEdit Templates to reduce use of complex controls and multiple bindings unless a row is being updated
2) Set column and row virtualisation to false (we don't have that many rows or columns and that improved scrolling performance greatly).
3) Move DataTemplates into UserControl.Resources instead of inline
4) Look to avoid the use of usercontrols within the row.
5) Use GridViewColumn instead of GridViewDataColumn (each control has it's binding setup within the datatemplate and we are currently not using sorting/grouping etc) as a base class of my custom column (although I noticed that I can no longer switch to edit mode by setting focus to a cell and typing.....I have to set focus to the row/cell and then click a second time to enter it......is there an easy way of porting that behaviour to my custom column?).
6) Set the details view visibility to collapsed............Is there a way of triggering the details view to show from the item it is bound to (each row is bound to a ViewModel)? I had it always visible and a stackpanel within it that was collapsed and made visible as when needed....although when I added lots of rows the details row would sometimes appear as a thin white line on some of the rows).
7) Update to the latest Telerik assemblies.
I also stripped all custom styles.......when I had them enabled it seemed to add a few Mb to memory every time I added a row :S (at the moment the addition of a row adds 200k-600k) part of this is the viewmodel being setup but it is strange that rows would appear to add so much. Now I'll be adding styles back one at a time to see which is the main culprit.
Any recommendations on how to improve performance. It seems that scrolling through the rows with the arrow keys causes CPU usage to jump quite a bit as well.
Thanks,
John