Telerik Forums
UI for WPF Forum
0 answers
107 views
Hi all,

We use Telerik WPF suite version 2012.3.1129.40 and Telerik reporting suite .

Our customer wants to upgrade Visual Studio version from 2010 to 2013.

We opened and built our solution to Visual Studio 2013 and we couldn’t see any problem. It still works correctly.At least for now...
 
Do we need to upgrade Telerik ".dll" files or something like that? Or does it still works as it s expected?

Thanks in advance
 
Kerem
Kerem
Top achievements
Rank 1
 asked on 13 May 2014
3 answers
135 views
Hello,
I have created a new control that inherits RadAutoCompleteBox and I need to make some work when the control lost its focus.
I have written a OnLostFocus method that overrrides the base method, but it is unfortunately never called.
Is this a bug?
Patrick
Kalin
Telerik team
 answered on 13 May 2014
12 answers
397 views
Hi,

I've created a demo project that will demonstrate my current situation and my goal.

The code and XAML are attached below.

As you could see in the picture marked as "Desired display" and in propertyGrid2 in the code I had to create a mockup classes that will display the properties.

My goal is to get the "Desired display" look by using only the "MainObject" and "PropertiesObject".

The main issues I have are:
1. I need to translate the 3 properties from "PropertiesObject": "PropertyName", "PropertyType" and "PropertyValue" into a single property (without generating a new class on run time).
2. I need to make the observable collection nested properties display the list of "PropertiesObject" (after my conversion to a single property) without the extra nested properties (like Count).
3. I don't want to use or display the "CollectionEditor".

The amount and variety of the properties in the "OtherProperties" observable collection are unknown during compile-time and change during run-time from another source.

I do not require the ability to edit the properties so they can all be read-only.

Do you have any hints on how I can accomplish my goal?

This is the code I'm using:
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace TelerikPropertyGrid
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            PropertiesObject property1 = new PropertiesObject() { PropertyName = "stringProperty1", PropertyType = typeof(string), PropertyValue="string 1" };
            PropertiesObject property2 = new PropertiesObject() { PropertyName = "stringProperty2", PropertyType = typeof(string), PropertyValue = "string 2" };
            PropertiesObject property3 = new PropertiesObject() { PropertyName = "boolProperty1", PropertyType = typeof(bool), PropertyValue= (Boolean)true };
            PropertiesObject property4 = new PropertiesObject() { PropertyName = "boolProperty2", PropertyType = typeof(bool), PropertyValue = (Boolean)false };
            PropertiesObject property5 = new PropertiesObject() { PropertyName = "intProperty1", PropertyType = typeof(int), PropertyValue=(Int32)10 };
            ObservableCollection<PropertiesObject> properties = new ObservableCollection<PropertiesObject>() { property1, property2, property3, property4, property5 };
            MainObject main = new MainObject() { Name = "john", Age = 25, OtherProperties = properties };
 
            //this is the property grid I have and want to modify using only MainObject and PropertiesObject classes
            PropertyGrid1.Item = main;
            PropertyGrid1.Visibility = System.Windows.Visibility.Visible;
 
            //this proeprty grid demonstrates how I want my grid to look like.
            //I created the "goal*" classes in order to populate it, I don't have those in the production system
            PropertyGrid2.Item = new GoalDisplayObject();
            PropertyGrid2.Visibility = System.Windows.Visibility.Hidden;
        }
    }
 
    public class MainObject //exist in production
    {
        public string Name { get; set; }
        public int Age { get; set; }
        public ObservableCollection<PropertiesObject> OtherProperties { get; set; }
    }
 
    public class PropertiesObject //exist in production
    {
        public string PropertyName { get; set; }
        public Type PropertyType { get; set; }
        public object PropertyValue { get; set; }
    }
 
    public class GoalDisplayObject  //doesn't exist in production
    {
        public string Name { get { return "john"; } set { } }
        public int Age { get { return 25; } set { } }
        public GoalNestedProperties OtherProperties { get { return new GoalNestedProperties(); } set { } }
         
    }
    public class GoalNestedProperties  //doesn't exist in production
    {
        public bool boolProperty1 { get { return true; } set { } }
        public bool boolProperty2 { get { return false; } set { } }
        public string stringProperty1 { get { return "string 1"; } set { } }
        public string stringProperty2 { get { return "string 2"; } set { } }
        public int intProperty1 { get { return 10; } set { } }
        public override string ToString() { return ""; }
    }
}

And this is the XAML:
<Window x:Class="TelerikPropertyGrid.MainWindow"
    xmlns:local="clr-namespace:TelerikPropertyGrid"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadPropertyGrid x:Name="PropertyGrid1" Grid.Row="0" NestedPropertiesVisibility="Visible" SortAndGroupButtonsVisibility="Collapsed" SearchBoxVisibility="Collapsed" FieldIndicatorVisibility="Collapsed" DescriptionPanelVisibility="Collapsed"/>
        <telerik:RadPropertyGrid x:Name="PropertyGrid2" Grid.Row="0" AutoGeneratePropertyDefinitions="False" NestedPropertiesVisibility="Visible" SortAndGroupButtonsVisibility="Collapsed" SearchBoxVisibility="Collapsed" FieldIndicatorVisibility="Collapsed" DescriptionPanelVisibility="Collapsed">
            <telerik:RadPropertyGrid.PropertyDefinitions>
                <telerik:PropertyDefinition Binding="{Binding Name}" DisplayName="Name"/>
                <telerik:PropertyDefinition Binding="{Binding Age}" DisplayName="Age"/>
                <telerik:PropertyDefinition Binding="{Binding OtherProperties}" DisplayName="Other Properties" IsExpanded="True">
                    <telerik:PropertyDefinition.NestedProperties>
                        <telerik:PropertyDefinition Binding="{Binding boolProperty1}" DisplayName="boolProperty1"/>
                        <telerik:PropertyDefinition Binding="{Binding boolProperty2}" DisplayName="boolProperty2"/>
                        <telerik:PropertyDefinition Binding="{Binding stringProperty1}" DisplayName="stringProperty1"/>
                        <telerik:PropertyDefinition Binding="{Binding stringProperty2}" DisplayName="stringProperty2"/>
                        <telerik:PropertyDefinition Binding="{Binding intProperty1}" DisplayName="intProperty1"/>
                    </telerik:PropertyDefinition.NestedProperties>
                </telerik:PropertyDefinition>
            </telerik:RadPropertyGrid.PropertyDefinitions>
        </telerik:RadPropertyGrid>
    </Grid>
</Window>

Thanks in advance,
Dimitrina
Telerik team
 answered on 13 May 2014
5 answers
152 views
I've run into some very strange problem.

I have several Aggregage SumFunctions in my grid.  When I group on a column, the group footer aggregates show, but will not update.  The numbers stay the same no matter what changes I make.

The aggregates at the bottom of the grid update fine.  I'm only having problems with group footer aggregates.

I have seen other posts about this issue, but you claim the issue was resolved in an update.  I am on v2012.2.725.40 of the WPF controls and using Visual Studio 2010.
Yoan
Telerik team
 answered on 13 May 2014
1 answer
81 views
I used that value of 'ValuePath' is 'double.NaN' for null value.

However, occurrenced error.

-> Value was either too large or too small for a Decimal.

Why occurrenced error?

What should I do?
Lee
Top achievements
Rank 1
 answered on 13 May 2014
1 answer
390 views
Hi everyone,

We have a window that contains a RadRichTextBox and it is loaded on demand, we've noticed that it takes a long time to load, around 20s, the first time, after that it loads fast.

checking on the output we found that the following module takes the entire load time.

'XXXX.exe' (CLR v4.0.30319: XXXX.exe): Loaded 'MetadataViewProxies_09fc4bbd-18cb-4607-8b8c-a7d449e27c43'.  


We guessed that it is related to MEF, anything on how we might fix this, by disabling probably unneeded features. Not all features are needed for our case.

we are using the following version: 2013.3.1016.40

Regards
Abdelkarim
Missing User
 answered on 12 May 2014
3 answers
97 views
Hi 

We are using Diagram control and have Diagramshape inside this control. Now when we try to re-size this shape using SettingsPane the maximum width and height of the shape can reach only up to 10,000 and does not go beyond that.
Is there some way by which we can get rid of any restriction on the size of diagramshape using SettingsPane.

Regards
JC
Petar Mladenov
Telerik team
 answered on 12 May 2014
3 answers
196 views
Hi,

I already post a thread about this issue, please ignore it!!

my SchedulView control  display from Monday to Friday, from 8:00 AM to 9:00 PM with a MinorTickLength of 15 minutes and of course we can have more than one resources per day. I would like to know which approach should I use to optimize the performance of the rendering? Ideally, I would like to display a UserControl inside each cells, each cells can be a closed slot, a special slot or an appointment.

thank you

Al

Kalin
Telerik team
 answered on 12 May 2014
4 answers
92 views
Hi all,

We're trying to create a completely borderless, minimalist gridview and have almost got it. The only problm remaining is a strange gradient...widget?...that appears only in the first column of the RadGridView. The picture with the red arrow points to what I'm referring to. What is this element? What is its template and/or style? We've gone through the GridViewHeader, GridViewHeaderRow, and GridView itself.

Steven
Top achievements
Rank 1
 answered on 12 May 2014
3 answers
124 views
good day,
bought lincença to utlização of some components of Telerik, first I'm going to use and add the RadGridView, but I have some difficulties and doubts.

1. FilteringMode = FilterRow
2. FilterOperator = StartsWith
. 3 Using wildcard expressions to filter every textbox to filter EXAMPLE: Like the SQL Server.

- Now I need to navigate between 'TextBox' filter using the Left and Right keyboard keys.
- Focus to 'Focus' in 'Grid' to "Down" keys, key but I have no idea how to do this.

graciously
André
Dimitrina
Telerik team
 answered on 12 May 2014
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?