Telerik Forums
UI for WPF Forum
5 answers
1.0K+ 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
203 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
240 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
277 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
100 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
147 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
183 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
464 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
95 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
1 answer
189 views

I installed UI for WPF Q1 2014. But there is no upgrade wizard entry in my start menu as described here http://www.telerik.com/help/wpf/radcontrols-for-wpf-vs-extensions-upgrading.html  .

What else I need to install?
Yana
Telerik team
 answered on 18 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
DataPager
PersistenceFramework
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
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?