or
<
Window
x:Class
=
"GridViewColumnFormat.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
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
>
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 });
}
}
}
}
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
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& verticalOffset, HashSet`1& 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)
...
<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}"
/>
...
...
<
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
>
...