Telerik Forums
UI for WPF Forum
2 answers
179 views
Hello. I decided to create my own DocumentPane based on RadDocumentPane. Then I tried to save and load RadDocking layout. Saving layout operation works good, but loading layout operation gives me a error:

​Specified argument was out of the range of valid values.
Parameter name: elementTypeName

How can I load layout with my custom documentPanes?
Sergey
Top achievements
Rank 1
 answered on 20 Mar 2014
1 answer
96 views
Hi,

I want to change the RadWindow's theme.
But I cannot use StyleManager like this:
<telerik:RadWindow x:Class="Eurlanda.DataShire.Squid.Views.DataGridShow"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                   Focusable="True" telerik:StlyeManager.Theme =""
                   Header="AcessFrom">
Please check the attachment.

But only RadGridView used StyleManager in XAML is OK. (RadWindow , RadMenu, RadDocking cannot use it.)

Telerik control version is 2013.3.1316.40
My VS version is 2013
My system is Windows 7 sp1

Thank you.

Ye HaoChen
Top achievements
Rank 1
 answered on 20 Mar 2014
1 answer
98 views
Let's assume I have a button on my window. I want to click the button and shift the focus to one of the cells in the grid and bring it in edit mode. How to got about this?
Nainil
Top achievements
Rank 1
 answered on 19 Mar 2014
3 answers
521 views
Hello,

I have a RadDiagram and RadPropertyGrid on a WPF form. I have the property grid defined as follows:

<telerik:RadPropertyGrid DockPanel.Dock="Right" LabelColumnWidth="100" HorizontalAlignment="Right" Width="250" 
                                 AutoGeneratePropertyDefinitions="True" PropertySetMode="Intersection"
                                 Item="{Binding ElementName=Diagram, Path=SelectedItems, UpdateSourceTrigger=PropertyChanged}">

The diagram's GraphSource property is bound to a view model of type "ObservableGraphSourceBase<ZoneDiagramItemViewModel, LinkViewModelBase<NodeViewModelBase>>".

The binding works in the sense that the property grid shows the selected item in the diagram with its original properties as they were in when the item was created. Whenever the item in the diagram is moved for example, the property grid is not updated. Neither does the item in the grid move after the respective property in the property grid is modified.

The ZoneDiagramItemViewModel initially inherited the NodeViewModelBase class. I then tried by re-implementing it using my own Height, Width, Position etc. properties that all fired the NotifyPropertychanged event. This did not work either.

How do I set up the binding so that properties are updated in both directions?

Thank you.

Maya
Telerik team
 answered on 19 Mar 2014
6 answers
227 views
I would like to re template the Grand Total line so that i could have 2 custom totals for each column.  Please see the attached image. 
Rosen Vladimirov
Telerik team
 answered on 19 Mar 2014
1 answer
180 views
Hi, 

I have a question about map scales. Is it possible to modify the scale associated with a zoom level in the RadMap control?

My client want that zoom level 1 represents a scale 1 : 5 500 000, zoom level 2 represents a scale 1 : 2 500 000 and so on. 

It doesn't fit with the resolution of the map i display in RadMap. 

Is there any way to configure this ? 

Thanks, 
Andrey
Telerik team
 answered on 19 Mar 2014
2 answers
153 views
I am using the following code to format the scale. 

<
telerik:RadialScale Min="0" Max="55000" Multiplier=".001" IsInteractive="True" MajorTickStep="5000" LabelLocation="OverInside" FontSize="11" LabelOffset="-25" LabelRotationMode="None" StartAngle="160" SweepAngle="220" LabelFormat="{}{0:F0}k">

Using a multiplier and a label format, I'm displaying values such as 5K, 10K, etc. instead of 5000, 10000, etc.
However, my first value shows up as '0K', while I would like just '0' (zero) to be shown.
How  can I achieve this? Thanks.
Tauqir
Top achievements
Rank 1
 answered on 19 Mar 2014
3 answers
312 views
I'm doing a project using Telerik 2011_3_1220 version. Anyother thing is nice except for one which related to the radGridView, the senario is like below:

Senario description:

I have data struction somehow like this:
a> Basic data 
Library -> Contains own properties and a List<ObjectType>
ObjectType-> Contains own typeID and other properties
ObjectInstance-> Contains own properties and a List<Property>
Property-> Contains value and name and other properties.

b> Data in ViewModel
SelectedLibraries -> List<Library>
AllObjectInstances -> Dictionary<ObjectTypeID, List<ObjectInstances>>

Now on my UI I have a treeview on left panel and gridview on right. Treeview is bind with SelectedLibraries which shows a hierarchical structure of Library and ObjectType for user to select. Upon user's selection of ObjectType, gridiview on the right side will be populated with data of the corresponding ObjectType. The data of the gridview is from AllObjectInstances[SelectedObjectTypeID]. Each ObjectInstance stand for one row, each ObjectInstance.Property.name stand for one column and each ObjectInstance.Property.value stands for the content poped into each gridview cell.



My solution:
Upon user's selection, I'll look for the corresponding collection of AllObjectInstances[SelectedObjectTypeID] and pass into a function which will translate this into a DataTable. The DataTable will take name of Property.name as column name and fill up the table with Property.value.
The gridview will be bind to this DataTable. So each time user select another ObjectType, the DataType will be re-formed again and Notify UI update. 



Problem:
If the Property contains in an ObjectInstance is not so many (less than 100), the performance is acceptable. But if the Property is more than that, every time user switch selection will take long to wait UI update which will fed up users.
For the gridview, I already enabled both row and columns virtulization.


This problem looks to me is like every time I need to do a data re-binding which could be comparatively slow, but I didn't expect can slow like this.
Is there any advise or solution to conquer this problem? Or even my solution is totally wrong I won't mind to re-structure, as long can improve the performance significantly.

Deni
Telerik team
 answered on 19 Mar 2014
4 answers
677 views
Hi, I'm using a RadRibbonWindow and RadRibbonView, I want to hide the title bar to save room so I set TitleBarVisibility="Collapsed", but this hides the windows close/maximise/minimise buttons, so I thought I would just make my own ones (see xaml below), but this doesn't work because the click event doesn't work on the buttons, also when the windowstate is normal you can see the top of the original close/maximise buttons and it doesn't look good.

Is there any good solution for hiding the title bar but maintaining the button?


<telerik:RadRibbonWindow x:Class="TelerikTest.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Name="dlgMain" Height="350" Width="525" >
    <Grid>
        <!-- Custom close/maximise/minimise buttons -->
        <Grid Panel.ZIndex="1" Margin="180,0,26,0" Height="24" HorizontalAlignment="Stretch"  VerticalAlignment="Top"  >
            <Button Name="btnClose" HorizontalAlignment="Right" Width="22" Content="❌" ToolTip="Close" Click="btnClose_Click" />
            <Button Name="btnMaximise" HorizontalAlignment="Right" Width="22" Content="▭" Margin="0,0,24,0" ToolTip="Toggle maximise" Click="btnMaximise_Click"/>
            <Button Name="btnMinimise" HorizontalAlignment="Right" Width="22" Content="‗‗" Margin="0,0,48,0" ToolTip="Minimise" Click="btnMinimise_Click"/>
        </Grid>
 
        <telerik:RadRibbonView Name="xRadRibbonBar"  Title="Test" ApplicationName="" IsBackstageOpen="False" SelectedIndex="0"
                               ApplicationButtonVisibility="Visible" TitleBarVisibility="Collapsed"  ContentHeight="72"
                              MinimizeButtonVisibility="Visible" >
 
            <telerik:RadRibbonView.ApplicationButtonContent>
                <TextBlock Text="File" />
            </telerik:RadRibbonView.ApplicationButtonContent>
 
            <telerik:RadRibbonTab Header="Home" >
                <telerik:RadRibbonGroup Header="Group" >
                    <telerik:RadRibbonButton Size="Large" Text="Item" >
                    </telerik:RadRibbonButton>
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
        </telerik:RadRibbonView>
 
    </Grid>
</telerik:RadRibbonWindow>
Martin
Top achievements
Rank 1
 answered on 19 Mar 2014
1 answer
64 views
Hi,

We are using a GridView in .Net 4.5 WPF application.

We have a GridView with items bound to an instance of a class which is implementing INotifyPropertyChanged.

All changes to data are correctly displayed when the GridView is unsorted and unfiltered.
However, if the GridView is either sorted or filtered, the data is not refreshed until the next sort when all the changes made in the meantime appear correctly.

Any help or ideas as to how we could fix this would be greatly appreciated.

Regards,
Tanja
Vera
Telerik team
 answered on 19 Mar 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?