Telerik Forums
UI for WPF Forum
2 answers
169 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
330 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
705 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
74 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
3 answers
274 views
Hi Support,

I want to modify the behavior of editor to accept .dotx files also. Kindly, let me know the fastest way to achieve it.

Regards,
Kushagra
Missing User
 answered on 19 Mar 2014
5 answers
985 views
Hi everyone,

I have developed a sample WPF projet referencing RadControls for WPF Q3 2013 Trial Version assemblies.
The main window contains a RadGridView.
The RadGridView has only one column which is a GridViewDataColumn.
I have written code in the main window's constructor to fill the RadGridView's Items collection with anonymous objects.
The anonymous objects have only one property named Value and whose type is double.
The GridViewDataColumn is bound to the Value property.

Here is the main window's XAML markup :

<Window x:Class="GridViewColumnFormat.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadGridView x:Name="m_grid" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataFormatString="F2" DataMemberBinding="{Binding Path=Value}" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>

Here is the main window's code-behind :

using System;
using System.Collections.Generic;
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 GridViewColumnFormat
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
 
            for (double l_index = 1000; l_index <= 20000; l_index += 1000.99)
            {
                m_grid.Items.Add(new { Value = l_index });
            }
        }
    }
}

The attached picture shows the main window.

I have set the GridViewDataColumn's DataFormatString property.
I want the space character to be the group separator for displaying values.
How can I set a custom group separator ?

Thank your in advance for your help
Administrator
Telerik team
 answered on 19 Mar 2014
1 answer
186 views
I'm trying to use the GetAllBookmarks code from here; http://www.telerik.com/help/wpf/radpdfviewer-document-model-annotations.html

But the collection of annotations in my document is empty.

I cannot attach the pdf because it has the wrong file type but Foxit PDF does list and use the bookmarks in the document correctly.

Here is the code I am using to load the pdf;

Dim pdfStream As System.IO.FileStream = New System.IO.FileStream("C:\test2.pdf", IO.FileMode.Open)
pdfStream.Position = 0

Dim document As RadFixedDocument = New PdfFormatProvider(pdfStream, FormatProviderSettings.ReadOnDemand).Import()
wpfPrintVersion.pdfViewer.Document = document


I am on version 2014.1.224.40.

Thanks.
Petya
Telerik team
 answered on 19 Mar 2014
8 answers
228 views
I searched the forum and found several threads about validation - error display.

In some of them like
here http://www.telerik.com/community/forums/wpf/property-grid/autogeneratepropertydefinitions-true-templates-tooltips.aspx
or http://www.telerik.com/community/forums/wpf/property-grid/validation.aspx

I found
Unfortunately, with the current version of RadControls, RadPropertyGrid lacks a proper way of displaying the validation error messages. However, we plan to introduce such (possibly a validation summary) with the incoming service pack of Q1.
(Feb. 29 2012 - LAST YEAR)
And
As a side note, please let me bring to your attention that we have planned to introduce a few validation improvements, including a validation summary for RadPropertyGrid.
Also Feb. 2012

So I guess you talked about Q1 SP1 2012.
And a had a look at the documentation - but found nothing about this.

Is there a feature like "Summary error" or so?

Manfred
Yoan
Telerik team
 answered on 19 Mar 2014
3 answers
259 views

Hello

I need to display in the date picker only the years.

I use the Date Selection Mode="Year" but in the text box it Still show the all date.

I try to give string format it not work.

How can I solve this problem?

Best regards

Ehud

 

Inge
Top achievements
Rank 1
 answered on 19 Mar 2014
5 answers
89 views
Hi

I had 2013.1.220.40 versio in use and all worked well. Now I had to update to 2013.3.1316.40 for new properties in RadGridView. After this update RadOutlookBar items started to swing side to side when selected item is changed. See attached files to see the situation.

/Harri
Boris
Telerik team
 answered on 19 Mar 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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?