Telerik Forums
UI for WPF Forum
3 answers
240 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
919 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
166 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
192 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
226 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
81 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
2 answers
104 views
Hello,
when an row is updated outside of the GridView, its position doesn't change, when the value of the currently sorted column changes.
Patrick
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 19 Mar 2014
10 answers
144 views
Hello all!

I'm using RadGridView 2013 Q3 SP2 to represent collection with grouping feature. Collection size is not over 100 entries.
I found a combination of groupped columns which cause ArgumentOutOfRangeException after i do any scroll: mouse wheel, page down, etc.
All of these columns are strings.
I can't reproduce this bug in sample application so may be it is data sensitive.
GridView has no RowStyles, no CellTemplates and isn't placed in a control that measures its children with infinity.

The bug don't occurs if don't set GroupRenderMode or use old Nested.

Here is stacktrace:
System.ArgumentOutOfRangeException: Argument is out of range. Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.RealizeRows(Int32 startIndex, Int32 endIndex, Double&amp; verticalOffset, HashSet`1&amp; realizedRows)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.MeasureOverride(Size availableSize)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   ...


Here is RadGridView:
<telerik:RadGridView
                     ItemsSource="{Binding Entries}"
                     HorizontalAlignment="Stretch"
                     IsReadOnly="False"
                     AutoExpandGroups="True"
                     CanUserDeleteRows="False"
                     AutoGenerateColumns="False"
                     IsFilteringAllowed="False"
                     CanUserSortColumns="True"
                     GroupRenderMode="Flat"
                     ShowColumnSortIndexes="True"
                     RowIndicatorVisibility="Collapsed">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Value1}" />
        ...

Yordanka
Telerik team
 answered on 19 Mar 2014
5 answers
425 views
Hello, 

  I want to set a zoomable background image to the diagram surface, made some research and found that topic on Telerik forums.


According to this, we can edit the default template of diagram surface so it will provide us a zoomable background.
Buti it didn't work.
Here's my custom diagram style code,

...
 
<Grid x:Name="TouchablePanel" Background="Transparent">
        <Grid x:Name="MainPanel" RenderTransformOrigin="0.5,0.5">
               <telerik:DiagramSurface x:Name="ItemsHost">
                     <telerik:DiagramSurface.Background>
                             <ImageBrush ImageSource="Desert.jpg" Stretch="UniformToFill" />
                      </telerik:DiagramSurface.Background>
                </telerik:DiagramSurface>
 
...



Can you please help me to find out the issue?
Zarko
Telerik team
 answered on 18 Mar 2014
0 answers
73 views
Hello together,

I set the DayStartTime of my TimelineView, for example to 02:20 pm and my MajorTickLength is 1 hour.

If I display a range over 10 hours I get the result you can see at the attached picture.
I got a major tick at 11:20 pm, then one at 00:00 am and the next at 01:00 am.

I would expact that the the TimelineView will dispaly the ticks at 00:20 am and then each hour, is this possible?
Mark
Top achievements
Rank 1
 asked on 18 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?