Telerik Forums
UI for WPF Forum
8 answers
488 views

Hi,

I've been tasking with scrubbing our use of Telerik (which is extensive in our app) for memory usage and possible efficiencies, as customers are concerned about high memory usage of our app, and speed.

RadGridView has been flagged as a likely candidate as a "memory hog" for customers that have over 1,000 records loaded at any given time.

 

Here is a snapshot of our implementation:

<telerik:RadGridView AutomationProperties.Name="EventSummaryGrid" x:Name="EventSummaryGrid" Grid.Row="1" Grid.Column="0"
HeaderRowStyle="{DynamicResource THOR_GridViewHeaderRowStyle}"   
local:GridDependencyProperties.ColumnCollection="{Binding ColumnCollection}"  
IsReadOnly="True" EnableColumnVirtualization="True"
CanUserDeleteRows="False" 
CanUserInsertRows="False"
ShowGroupPanel="True"     
AlternationCount="2"
RowIndicatorVisibility="Collapsed"
AutoExpandGroups="True"
MouseDoubleClick="EventSummaryGrid_MouseDoubleClick" 
ItemsSource="{Binding EventSummaryList}" 
AutoGenerateColumns="False"
RowIsExpandedChanged="EventSummaryGrid_RowIsExpandedChanged"
ScrollViewer.HorizontalScrollBarVisibility="Auto" 
ScrollViewer.VerticalScrollBarVisibility="Auto" 
SelectionMode="Extended" ShowColumnSortIndexes="False"
ClipboardCopyMode="All"
FieldFilterEditorCreated="EventSummaryGrid_FieldFilterEditorCreated" 
Loaded="EventSummaryGrid_Loaded"
Sorting="EventSummaryGrid_Sorting">

                <telerik:RadGridView.Resources>
                    <local:SensorTypeConverter x:Key="SensorTypeConverter" />
                    <local:SensorUnitsConverter x:Key="SensorUnitsConverter" />
                    <local:EventTypeConverter x:Key="EventTypeConverter" />
                    <local:StorageTypeConverter x:Key="StorageTypeConverter" />
                    <local:RecordLengthConverter x:Key="RecordLengthConverter" />
                    <local:SampleRateConverter x:Key="SampleRateConverter" />
                    <local:NoOfChannelsConverter x:Key="NoOfChannelsConverter" />
                    <local:NoUsbOfChannelsConverter x:Key="NoUsbOfChannelsConverter" />
                    <local:NumberOfIntervalsConverter x:Key="NumberOfIntervalsConverter" />
                    <local:DateTimeToStringConverter x:Key="DateTimeToStringConverter" />
                    <local:TriggerConverter x:Key="TriggerConverter" />

                </telerik:RadGridView.Resources>

 

- The grid has 60 columns, and filtering and sorting is on for all of them.

Here is an example of a typical column implementation:

 

                    <telerik:GridViewDataColumn x:Name="FileName" DataMemberBinding="{Binding FileName}" 
Header="{x:Static Resources:Resources.EventManagerView_Column_FileName}"
HeaderTextAlignment="Center" TextWrapping="NoWrap" TextTrimming="WordEllipsis" HeaderTextTrimming="WordEllipsis"
CellStyle="{DynamicResource THOR_GridViewCellStyle}"
            IsVisible="True">
                        <telerik:GridViewDataColumn.HeaderCellStyle>
                            <Style TargetType="telerik:GridViewHeaderCell">
                                <Setter Property="ToolTipService.ToolTip" Value="{x:Static Resources:Resources.EventManagerView_Column_FileName}">
                                </Setter>
                            </Style>
                        </telerik:GridViewDataColumn.HeaderCellStyle>
                    </telerik:GridViewDataColumn>

 

..and we use a child template:

 

<telerik:RadGridView.HierarchyChildTemplate>
<DataTemplate>
<StackPanel Orientation="Vertical">
<telerik:Label Margin="30,0,0,0" FontSize="12" FontWeight="Bold" Content="{x:Static Resources:Resources.Saved_Event_Report_Label}"/>
<telerik:RadGridView x:Name="ReportAnnotationsGrid"
GroupRenderMode="Flat"
BorderThickness="0,1,0,1"
AlternationCount="0"
GridLinesVisibility="None"
CanUserFreezeColumns="False"
AutoGenerateColumns="False"
ItemsSource="{Binding Annotations}"
ShowGroupPanel="False"
ShowColumnHeaders="False"
IsReadOnly="True"
MouseDoubleClick="ReportSelection_MouseDoubleClick"
GotFocus="ReportAnnotationsGrid_GotFocus"
SelectionChanged="ReportSelection_SelectionChanged"
CanUserDeleteRows="False" 
CanUserInsertRows="False"
IsFilteringAllowed="False"
FrozenColumnCount="0" 
FrozenColumnsSplitterVisibility="Collapsed"   
RowIndicatorVisibility="Collapsed"
SelectionMode="Single"
Margin="30,0,0,0">

 

...any suggestions on settings to keep the memory usage to a bare minimum would be appreciated !

Martin Ivanov
Telerik team
 answered on 05 Aug 2019
3 answers
210 views

Hi,

 

It seems like when we have the Telerik explorer control open and generate a new file into the directory in the App using a StreamReader, the file never appears in the explorer control. It seems that if you add a file to the directory using Windows Explorer, that file will appear immediately in the explorer control, and any files generated with the App suddenly appear as well. Is there an event that Windows Explorer triggers that we are missing? Is there a way to force the explorer control to refresh its files?

If you use the search bar to find the new file it will correctly find it, but as soon as you clear the search, the file will disappear again.

Thanks,

Ryan

Drago
Telerik team
 answered on 05 Aug 2019
1 answer
209 views

We have a WPF application that is using Telerik UI for WPF version 2017.3.913.45. I am making changes to the application and began to use the latest version 2019.1.220.45. The primary reason I used the latest version is grid paging. I have a few questions. 

1. Are there compatibility issues if we move our application to the latest version?  If so, where can I find a document which outlines those issues? The application compiles fine. I'm concerned about run time issues.

2. Is paging supported in the earlier version (2017.3.913.45 - it appears that it is not)? 

3. I did go to the download page to see if the earlier version (2017.3.913.45) has any DLLS that I'm missing which may have the paging functionality. I was not able to find this version in the list to be downloaded. Where can I find that version (in case I would like to use additional functionality)? See the attached screen shot which shows that it is not available in the list.

Thanks.

Martin Ivanov
Telerik team
 answered on 05 Aug 2019
3 answers
317 views

 I am using window 7 version 6.1 

 I am using 2018.1.220.45 version of telerik.

XAML code :

     xmlns:fixed="clr-namespace:Telerik.Windows.Documents.Fixed;assembly=Telerik.Windows.Controls.FixedDocumentViewers"

     <Grid.Resources>
            <fixed:PdfDocumentSourceValueConverter x:Key="PdfDocumentSourceValueConverter" />
        </Grid.Resources>

         <telerik:RadPdfViewer  DocumentSource="{Binding DocumentSource, Converter={StaticResource                          PdfDocumentSourceValueConverter},ConverterParameter=ReadOnDemand}" />

Just given the binding for document source and showing it on a new window.

The document remains blank. No exception.

It's working fine on windows 10. 

I have also tried the telerik demo application but didn't worked. 

Peshito
Telerik team
 answered on 05 Aug 2019
2 answers
165 views

Newbie question: my boolean values are stored as int in Sqlite database. I therefore treat them as int in my model and viewmodel, but I want to treat them as boolean (true/false) in my RadDataForm. Is the proper way to do this by implementing IValueConverter, turning autogeneratefields off, defining customized fields via a data template, and applying said converter to all boolean fields? Or is there are quicker approach?

Wayne

n/a
Top achievements
Rank 1
 answered on 05 Aug 2019
1 answer
453 views

https://demos.telerik.com/wpf/colorthemegenerator/

Where is the documentation on how to use it ? I found a button on the bottom right that copies the colour settings to the clipboard...ok...how do I use them after that ?

Thanks,

Barry

Martin Ivanov
Telerik team
 answered on 05 Aug 2019
1 answer
179 views

On a RadTreeView, is it possible to disable drop positions before and after, thus allowing only to drop inside an item? Setting the RadTreeViewItem's property "DropPosition" to "Inside" doesn't seem to have an effect.

 

Thanks

Michael

 

Vladimir Stoyanov
Telerik team
 answered on 05 Aug 2019
4 answers
374 views
I used Material Theme.
My RadComboBox when is NonEditable don't have Material style but when is Editable have Material style, Why?
Mahdi
Top achievements
Rank 1
 answered on 03 Aug 2019
7 answers
352 views

I have one truck gridview. in that i have RowDetailsTemplate which contains one more gridview order details. This order detail will bind on truck's LoadingRowDetails event.

Now am draging order from some other grid & droping to truck grid. And binding Truck grid again. (As i am not know how to find direct order grid gridview..if anybody can help on this then its great for me.)

Now what happens if GridViewToggleRowDetailsColumn is visible & am droping to truck grid. it will not update order detail grid.

For this i have to do like

rgvTruckList.ItemsSource =

 

Nothing

 

rgvTruckList.ItemsSource = objTruckList

then its working fine. but it takes more time.



Thanks...!!!

gaurav
Top achievements
Rank 1
 answered on 02 Aug 2019
2 answers
152 views

Hi,

I can't seem to right align the value of the RadCalculatorPicker.  I've tried using the HorizontalContentAlignment property, without succes.  Any ideas ?

Regards,
Hans

Hans
Top achievements
Rank 1
Veteran
 answered on 02 Aug 2019
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?