Telerik Forums
UI for WPF Forum
1 answer
153 views
I have created a user control as follows:
<UserControl x:Class="SpdrRiskDetail.SpdrRiskDetailControl"
 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
              
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:pivot="http://schemas.telerik.com/2008/xaml/presentation/pivot"
             xmlns:data="clr-namespace:SpdrRiskDetail"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="3*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <pivot:RadPivotGrid x:Name="mainPivotGrid" Grid.RowSpan="2" />
        <pivot:RadPivotFieldList x:Name="mainFieldList" Grid.Column="1" Margin="4 0 0 0"/>
    </Grid>
</UserControl>
I have referenced the follows Telerik DLL's:
Pivot.Core, Windows.Controls.Windows.controls.pivot,windows.controls.pivotfieldlist, telerik.windows.data. I have checked that they are all the same version
(2014.1.414.45 ) however I get the error "The name "RadPivotGrid" does no exist in the namespace http://schemas.telerik.com/2008/xaml/presentation/pivot. I also get exactly the same error for "RadPivotFieldList". What am I missing - please advise as I have been running around in circles for hours now. Thank you






Rosen Vladimirov
Telerik team
 answered on 13 May 2014
1 answer
282 views
Hello

How can I access to rows for specific row in parent-children relation? Something like:
gridView.Rows[1].Childrens (type IEnumerable<GridViewRow>)
Boris
Telerik team
 answered on 13 May 2014
1 answer
109 views
Hi 
I want to setup an RadChart with images as X Values. Is this possible? I would prefer the chart in 3D.

Thanks in advance

Dimos
Evgenia
Telerik team
 answered on 13 May 2014
1 answer
333 views
hello!

I try to use telerik-docking control with MVVM pattern.
I saw this article, and others.


my question is:

I bind the PanesSource property to ObservableCollection<PaneViewModel>.

when I add item to the ObservableCollection, it's add pane to the control,
but, when I close any pane, it's not remove the viewmodel from the collection!

How can I sync the collection with the panes well?

thanks!
Vladi
Telerik team
 answered on 13 May 2014
3 answers
274 views
Hi guys... again. I started similar topic in GridView forum. But now I get another inner exception when trying to run app: "Required permissions cannot be acquired."
App runs on Bloomberg App Portal.

Controls version is 2013.2.724.40 for .net 4.0,
Visual Studio 2013 with latest updates,
Windows 8.1
Dimitrina
Telerik team
 answered on 13 May 2014
0 answers
91 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
107 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
375 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
146 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
76 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?