Telerik Forums
UI for WPF Forum
1 answer
97 views

Hi,

I'm new to Telerik. In learning MVVM, I've been religiously separating the ViewModel and Model. However, when looking at Telerik examples, such as those for RadDataForm, it appears that only one model class is used, and that it is bound directly to the View. The notes state that if I want to use change notification, I should implement INotifyPropertyChanged, which I typically do in the ViewModel. So, for best practice,should I split the sample class into a Model and ViewModel at this point?

On a related note, I've been implementing IDataNotifyError in my test apps, but it appears that I can tap into Telerik's simplified validation model. So let me turn this this into a broader question. For a thorough understanding, I've been trying to reconcile Telerik's approach to the lessons/rules I've adopted from various WPF textbooks. Is this an easier way to do this, or should I abandon that goal and simply do things the Telerik way?

Wayne

Vladimir Stoyanov
Telerik team
 answered on 05 Aug 2019
1 answer
124 views

Hello,

im interested in use the Telerik PDF Viewer for also signing a pdf with a pencil. Is it possible the implement such a feature?

 

Best regards,

Thomas

Tanya
Telerik team
 answered on 05 Aug 2019
8 answers
463 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
195 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
184 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
294 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
151 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
427 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
160 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
351 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
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
PersistenceFramework
DataPager
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?