Telerik Forums
UI for WPF Forum
3 answers
161 views

Just installed UI for WPF Q1 217 SP1 and received this error.

error MC3080: The property 'DataFormValidationSummary.Errors' cannot be set because it does not have an accessible set accessor.

We have been using the DataFormValidationSummary outside of the DataForm for years.  This is a serious breaking change for us.  Can you provide a work around?

Thanks in advance,

Steve

Steve
Top achievements
Rank 1
 answered on 29 Feb 2016
2 answers
388 views

Hi,

I have a GridView for a DesktopAlert. It is like the example in your demos. 

For the grouping by email received datetime I have used the same example: 

 

var dateGroupDescriptor = new Telerik.Windows.Data.GroupDescriptor<Message, DateTime, DateTime>();
 
           dateGroupDescriptor.GroupingExpression = email => email.Received.Value.Date;
           this.gridView.GroupDescriptors.Add(dateGroupDescriptor);
 
           var dateSortDescriptor = new SortDescriptor<Message, DateTime>();
           dateSortDescriptor.SortingExpression = item => item.Received.Value;
           dateSortDescriptor.SortDirection = System.ComponentModel.ListSortDirection.Descending;
           this.gridView.SortDescriptors.Add(dateSortDescriptor);

 

It works succesfull, however the format of the group header is "mm/dd/yyyy" and I need other date formart. 

How do I change the date format string?

 

Thanks!

Fernan
Top achievements
Rank 1
 answered on 29 Feb 2016
1 answer
180 views

Hi,

I would like to use RadGridView for merge cell feature. I have requirement that it should display icon along with Text which will come from database. Icons will dynamic icons based on condition. 

Can you please help me out for how to add icon in Merged cell? I have attached sample image from Telerik Demo by adding my requirement how i want it.

Thanks

Stefan
Telerik team
 answered on 29 Feb 2016
1 answer
186 views
How does Timeline Control deal with the BC date?
Dinko | Tech Support Engineer
Telerik team
 answered on 29 Feb 2016
1 answer
176 views

Hi,

is there a way to prevent the vertical weekview from showing horizontal scrollbars by narrowing the groupheaders to the available space? I also realized, that when you put a lot of appointments into one slot, this group gets more space than the others.

What I want is, that every column has the exact same width and they use only the space available in the current window without horizontal scrolling.

Thanks

Matthias

Yana
Telerik team
 answered on 29 Feb 2016
1 answer
251 views

Recently, when we enabled UI virtualization for RadTreeView in our application, our icons for the RadTreeViewItems disappeared.

We set the icons (DefaultImageSrc) in DataTrigger setters in a style, as follows:

 

<UserControl ...>
    <UserControl.Resources>
        <Style x:Key="TreeViewItemStyleBase" TargetType="{x:Type telerik:RadTreeViewItem}">
            ... 
            <Style.Triggers>
                <DataTrigger Binding="{Binding ...}">
                    <DataTrigger.Value>...</DataTrigger.Value>
                    <Setter Property="DefaultImageSrc" Value="/Our App;component/Resources/Icons/grid.png" />
                </DataTrigger>
 
                <DataTrigger Binding="{Binding ...}">
                    <DataTrigger.Value>...</DataTrigger.Value>
                    <Setter Property="DefaultImageSrc" Value="/Our App;component/Resources/Icons/bargraph.png" />
                </DataTrigger>
 
            </Style.Triggers>
        </Style>

 

        <Style TargetType="{x:Type telerik:RadTreeViewItem}" BasedOn="{StaticResource TreeViewItemStyleBase}" />
 
    </UserControl.Resources>
 
    <telerik:RadTreeView
                         IsVirtualizing="True" telerik:TreeViewPanel.VirtualizationMode="Hierarchical"
                         ... >
        ...
    </telerik:RadTreeView>
</UserControl>

 

This is with UI for WPF v. 2015.2.0401

 

It looks like this is the known bug described here and here.   That is, the problem is that DefaultImageSrc is non-functional in virtualized trees.

1) Can I get a confirmation that this bug is indeed causing our difficulty, please?  Is there anything else you see that would cause it?

2) It looks like you all have declined to fix this bug in the past.  Still declining? :)

3) I could recommend that the documentation for UI Virtualization with RadTreeView here be updated, please, to to include some very obvious notes, a) that enabling virtualization will disable DefaultImageSrc and ExpandedImageSrc (and any other TreeView features that don't work with virtualization?), and b) that workarounds are necessary.

 

Thanks!

 

-David

 

 

Petar Mladenov
Telerik team
 answered on 29 Feb 2016
6 answers
233 views

Hi! I develop Prism 6 WPF MVVM application. I defined an ObservableCollection instance in Model, please see below:

public class DeviceStatusModel
    {
        #region Constructors
        public DeviceStatusModel()
        {
            SeriesData = new ObservableCollection<short>();
            SeriesData.Add(20);
            SeriesData.Add(30);
            SeriesData.Add(50);
            SeriesData.Add(10);
            SeriesData.Add(60);
            SeriesData.Add(40);
            SeriesData.Add(20);
            SeriesData.Add(80);
        }
        #endregion

        #region Properties
        public ObservableCollection<short> SeriesData { get; set; }
        #endregion
    }

Then in ViewModel I defined the property of type of DeviceStatusModel. Please see below:

    public class DeviceStatusViewModel : BindableBase
    {
        #region Fields

        private DeviceStatusModel _deviceStatusModel;

        #endregion

        #region Constructors

        public DeviceStatusViewModel()
        {
            this.DeviceStatusModel = new DeviceStatusModel();
        }

        #endregion

        #region Properties

        public DeviceStatusModel DeviceStatusModel
        {
            get { return this._deviceStatusModel; }
            set { this.SetProperty(ref this._deviceStatusModel, value); }
        }

        #endregion
    }

Then in View I wrote the next XAML, please see below:

<UserControl x:Class="DeviceStatus.Views.DeviceStatusView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:prism="http://prismlibrary.com/"             
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"             
             prism:ViewModelLocator.AutoWireViewModel="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <telerik:RadCartesianChart Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left" Margin="6,7,0,0" VerticalAlignment="Top">
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:ScatterLineSeries ItemsSource="{Binding DeviceStatusModel.SeriesData}"/>
        </telerik:RadCartesianChart>

    </Grid>
</UserControl>

And eventually when aplication runs I see only next poor picture, please see "ChartViewScreenShot.PNG" file attached.

 

Eugene
Top achievements
Rank 1
 answered on 29 Feb 2016
1 answer
142 views

Hi!
Is there a way to _not_ enter the edit mode if the user changes the selected cell using the arrow keys or by pressing enter?
(Event if the user was in edit mode before). I want to get closer to the behavior of excel.

Alex

Stefan
Telerik team
 answered on 29 Feb 2016
4 answers
215 views
I'm experiencing an issue with the RadRibbonDropDownButton control where the DropDownContent is a ListBox with keyboard based navigation. I open the dropdown via the access key text, then use the arrow keys to select an item in the listbox, but when I press enter, nothing happens until I press another arrow key (or escape). At this point, the popup closes, but if I pressed an arrow key, it moves the selection prior to closing the popup. I'm not sure if I'm doing something wrong in my use of the control, or if this is a bug. Anyone have any experience with this?
Ivan
Telerik team
 answered on 29 Feb 2016
1 answer
167 views
Hi, I have many, many selected items and the box is growing huge. How do I implement the autocompletebox so that at lets say a max of 300 it'll start to display the scrollviewer. 
Yana
Telerik team
 answered on 29 Feb 2016
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?